Skip to content

Commit

Permalink
Merge pull request #4 from vroncevic/dev
Browse files Browse the repository at this point in the history
[gen_shared_file] Renaming done
  • Loading branch information
vroncevic committed Jan 25, 2020
2 parents 5c39899 + 6b0d60e commit 377c33a
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ other information that should be provided before the modules are installed.
To install this set of modules type the following:

```
cp -R ~/gen_shf_scripts/bin/ /root/scripts/gen_shf/ver.1.0/
cp -R ~/gen_shf_scripts/conf/ /root/scripts/gen_shf/ver.1.0/
cp -R ~/gen_shf_scripts/log/ /root/scripts/gen_shf/ver.1.0/
cp -R ~/gen_shared_file/bin/ /root/scripts/gen_shared_file/ver.1.0/
cp -R ~/gen_shared_file/conf/ /root/scripts/gen_shared_file/ver.1.0/
cp -R ~/gen_shared_file/log/ /root/scripts/gen_shared_file/ver.1.0/
```

### DEPENDENCIES
Expand All @@ -22,7 +22,7 @@ This module requires these other modules and libraries:

### COPYRIGHT AND LICENCE

Copyright (C) 2019 by https://vroncevic.github.io/shared_files_skeleton/
Copyright (C) 2019 by https://vroncevic.github.io/gen_shared_file/

This tool is free software; you can redistribute it and/or modify
it under the same terms as Python itself, either Python version 2.7/3.4 or,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
# gen_shf.py
# gen_shared_file.py
# Copyright (C) 2019 Vladimir Roncevic <elektron.ronca@gmail.com>
#
# gen_shf is free software: you can redistribute it and/or modify it
# gen_shared_file is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# gen_shf is distributed in the hope that it will be useful, but
# gen_shared_file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
Expand All @@ -22,7 +22,7 @@
try:
from pathlib import Path

from shf.shf_setup import SHFSetup
from shared_file.shared_file_setup import SHFSetup
from ats_utilities.cfg_base import CfgBase
from ats_utilities.console_io.error import error_message
from ats_utilities.console_io.verbose import verbose_message
Expand Down Expand Up @@ -57,8 +57,8 @@ class GenSHF(CfgBase):
"""

__slots__ = ('VERBOSE', '__CONFIG', '__OPS')
VERBOSE = 'GEN_SHF'
__CONFIG = '/../conf/gen_shf.cfg'
VERBOSE = 'GEN_SHARED_FILE'
__CONFIG = '/../conf/gen_shared_file.cfg'
__OPS = ['-g', '--gen', '-h', '--version']

def __init__(self, verbose=False):
Expand Down Expand Up @@ -109,7 +109,7 @@ def process(self, verbose=False):
'Generating SHF project skeleton', opts.pro
)
print(message)
gen_status = generator.gen_shm_setup("{0}".format(opts.pro))
gen_status = generator.gen_shf_setup("{0}".format(opts.pro))
if gen_status:
success_message(self.name, 'Done\n')
status = True
Expand All @@ -118,6 +118,6 @@ def process(self, verbose=False):
else:
error_message(self.name, 'project already exist !')
else:
error_message('gen_shf', 'Tool is not operational')
error_message('gen_shared_file', 'Tool is not operational')
return True if status else False

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# gen_shf_run.py
# gen_shared_file_run.py
# Copyright (C) 2019 Vladimir Roncevic <elektron.ronca@gmail.com>
#
# gen_shf is free software: you can redistribute it and/or modify it
# gen_shared_file is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# gen_shf is distributed in the hope that it will be useful, but
# gen_shared_file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
Expand All @@ -20,7 +20,7 @@
import sys

try:
from gen_shf import GenSHF
from gen_shared_file import GenSHF
except ImportError as e:
msg = "\n{0}\n{1}\n".format(__file__, e)
sys.exit(msg) # Force close python ATS ##################################
Expand Down
6 changes: 6 additions & 0 deletions python-tool/bin/shared_file/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: UTF-8 -*-

"""
Generating Shared File project
"""

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# -*- coding: UTF-8 -*-
# shf_setup.py
# shared_file_setup.py
# Copyright (C) 2019 Vladimir Roncevic <elektron.ronca@gmail.com>
#
# gen_shf is free software: you can redistribute it and/or modify it
# gen_shared_file is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# gen_shf is distributed in the hope that it will be useful, but
# gen_shared_file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
Expand Down Expand Up @@ -54,7 +54,7 @@ class SHFSetup(object):
"""

__slots__ = ('VERBOSE')
VERBOSE = 'GEN_SHF::SHF_SETUP::SHFSETUP'
VERBOSE = 'GEN_SHARED_FILE::SHARED_FILE_SETUP::SHFSETUP'

def __init__(self, verbose=False):
"""
Expand Down
6 changes: 0 additions & 6 deletions python-tool/bin/shf/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ats_name = gen_shf
ats_name = gen_shared_file
ats_version = 1.0
ats_build_date = 7 Nov 2019
ats_license = https://github.com/vroncevic/shared_files_skeleton/blob/master/LICENSE
File renamed without changes.
Empty file.

0 comments on commit 377c33a

Please sign in to comment.