Class: Bixby::Provision::App
- Inherits:
-
Object
- Object
- Bixby::Provision::App
- Includes:
- Log, ScriptUtil
- Defined in:
- lib/bixby/provision/app.rb
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
- #run! ⇒ Object
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
12 13 |
# File 'lib/bixby/provision/app.rb', line 12 def initialize end |
Instance Method Details
#run! ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/bixby/provision/app.rb', line 15 def run! file = ARGV.shift if file == "--" then logger.info "reading manifest on STDIN" str = read_stdin() t = Tempfile.new("bixby-provision-") t.write(str) t.close file = t.path else file = File.(file) logger.info "reading manifest from file #{file}" end Bixby::Provision::Manifest.new(file) end |