Module: Wildcloud::Runner::Tools
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/wildcloud/runner/tools.rb', line 12 def logger return @logger if @logger @logger = Wildcloud::Logger::Logger.new('instancexy') @logger.add(Wildcloud::Logger::Middleware::Console) @logger.add(Wildcloud::Logger::Middleware::Json) @logger.add(Wildcloud::Logger::Middleware::Logeen, :address => '10.0.0.1', :port => 4100) @logger end |
#run(command) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/wildcloud/runner/tools.rb', line 21 def run(command) logger.info('Tools', "Running '#{command}'") stdout = `#{command}` logger.info('Tools', stdout) stdout end |