class DYAutomate::Command
Attributes
config[RW]
env_str[RW]
repo_name[RW]
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/DYAutomate/Command.rb, line 27 def initialize(argv) super @config = DYAutomateConfig.loadConfig @env_str = @config.detailObj.env_str if @config @repoName = @config.detailObj.private_repo_name if @config end
Public Instance Methods
pp(msg,level = 2)
click to toggle source
# File lib/DYAutomate/Command.rb, line 44 def pp(msg,level = 2) unless msg return end if level == 1 puts msg.white if msg elsif level == 2 puts msg.red if msg end end
run()
click to toggle source
def self.options
[ ['--silent', 'Show nothing'], ].concat(super)
end
# File lib/DYAutomate/Command.rb, line 40 def run pp('automate works!!',1) end