Class: DYAutomate::Command

Inherits:
CLAide::Command
  • Object
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

Direct Known Subclasses

Git, Pod, WorkSpace

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)



22
23
24
25
26
# File 'lib/DYAutomate/Command.rb', line 22

def initialize(argv)
  super
				@repoName = CoreConfig::Core_previte_repo_name
				@env_str = CoreConfig::Core_env_str
end

Class Method Details

.optionsObject



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

#runObject



34
35
36
# File 'lib/DYAutomate/Command.rb', line 34

def run
  pp('automate works!!',1)
end