Class: DYAutomate::Command
- Inherits:
-
CLAide::Command
- Object
- CLAide::Command
- DYAutomate::Command
show all
- Includes:
- CoreConfig
- Defined in:
- lib/DYAutomate/Command.rb,
lib/DYAutomate/Command/pod.rb,
lib/DYAutomate/Command/dgit.rb,
lib/DYAutomate/Command/Pod/push.rb,
lib/DYAutomate/Command/workspace.rb,
lib/DYAutomate/Command/Git/tagAdd.rb,
lib/DYAutomate/Command/Pod/version.rb,
lib/DYAutomate/Command/Workspace/update.rb
Defined Under Namespace
Classes: Git, Pod, WorkSpace
Constant Summary
Constants included
from CoreConfig
CoreConfig::Core_env_str, CoreConfig::Core_pod_git_url, CoreConfig::Core_previte_repo_name, CoreConfig::Core_previte_repo_url
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(argv) ⇒ Command
self.plugin_prefixes = %w(claide DYAutomate)
Class Method Details
.options ⇒ Object
28
29
30
31
32
|
# File 'lib/DYAutomate/Command.rb', line 28
def self.options
[
['--silent', 'Show nothing'],
].concat(super)
end
|
Instance Method Details
#pp(msg, level) ⇒ Object
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/DYAutomate/Command.rb', line 38
def pp(msg,level)
unless msg
return
end
if level == 1
puts msg.white if msg
elsif level == 2
puts msg.red if msg
end
end
|
#run ⇒ Object
34
35
36
|
# File 'lib/DYAutomate/Command.rb', line 34
def run
pp('automate works!!',1)
end
|