Skip to content

Instantly share code, notes, and snippets.

@jmtd
Created August 5, 2016 12:18
Show Gist options
  • Save jmtd/84b40d6505ff9c5c90e9870327d0288c to your computer and use it in GitHub Desktop.
Save jmtd/84b40d6505ff9c5c90e9870327d0288c to your computer and use it in GitHub Desktop.
cevm$ cct -s base.File
2016-08-05 13:17:56,256 - cct - INFO - found <class 'cct.module.amq.AMQ'>
2016-08-05 13:17:56,260 - cct - INFO - found <class 'cct.module.git.git'>
2016-08-05 13:17:56,261 - cct - INFO - found <class 'cct.module.jboss.Cli'>
2016-08-05 13:17:56,262 - cct - INFO - found <class 'cct.module.openshift.Openshift'>
2016-08-05 13:17:56,264 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,264 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,264 - cct - INFO - found <class 'cct.module.base.Shell'>
2016-08-05 13:17:56,267 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.Shell'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.XML'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.Dummy'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.File'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.Shell'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.base.XML'>
2016-08-05 13:17:56,268 - cct - INFO - found <class 'cct.module.jboss.Cli'>
2016-08-05 13:17:56,269 - cct - INFO - found <class 'cct.module.jboss.JBossInstall'>
2016-08-05 13:17:56,269 - cct - INFO - found <class 'cct.module.jboss.Cli'>
2016-08-05 13:17:56,269 - cct - INFO - found <class 'cct.module.jboss.JBossCliModule'>
2016-08-05 13:17:56,269 - cct - INFO - found <class 'cct.module.jboss.JBossInstall'>
ERROR:root:Cannot import module No module named shell
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cct/module.py", line 233, in find_modules
self.check_module(root + "/" + candidate)
File "/usr/lib/python2.7/site-packages/cct/module.py", line 240, in check_module
module = imp.load_source(module_name, os.path.abspath(candidate))
File "/home/ce/images/jboss-amq-6-docker/out2/cct/base/tests/test_unit_module_shell.py", line 4, in <module>
from base.shell import Shell
ImportError: No module named shell
Module base.File contains commands:
chmod:
Change the ownership of a path.
Args:
path: the path to operate on
mode: the numeric mode to set
recursive: whether to change mode recursively
chown:
Change the permissions of a path.
Args:
owner: the owner (numeric or name) to change ownership to
group: the group (numeric or name) to change groupship to
path: the path to operate on
recursive: if path is a directory, recursively change ownership for all
paths within
copy:
Copies file.
Args:
source: path to file
destination: path where file should be copied
link:
Creates symbolik link.
Args:
source: path to symbolik link destination
destination: Symbolik link name
move:
Moves file.
Args:
source: path to file
destination: path where file should be moved
remove:
Removes file.
Args:
source: path to file to be removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment