Class: Bixby::Provision::App

Inherits:
Object
  • Object
show all
Includes:
Log, ScriptUtil
Defined in:
lib/bixby/provision/app.rb

Instance Method Summary collapse

Constructor Details

#initializeApp

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.expand_path(file)
    logger.info "reading manifest from file #{file}"
  end

  Bixby::Provision::Manifest.new(file)
end