Sha256: 77c44ea77a0218dda93381122cd4fc46c500bb9aad041705b0e0324118f4d04a
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
require 'bundler' Bundler.setup(:default, :development) require 'heroku-commander' logger = Logger.new($stdout) logger.level = Logger::DEBUG commander = Heroku::Commander.new({ :logger => logger }) uname = commander.run "uname -a", { :size => "2X" } logger.info "Heroku dyno is a #{uname.join('\n')}." files = [] commander.run "ls -1" do |line| files << line end logger.info "The Heroku file system has #{files.count} file(s): #{files.join(', ')}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heroku-commander-0.3.1 | examples/heroku-run.rb |
heroku-commander-0.3.0 | examples/heroku-run.rb |