class Bixby::Provision::App

Public Class Methods

new() click to toggle source
# File lib/bixby/provision/app.rb, line 12
def initialize
end

Public Instance Methods

run!() click to toggle source
# 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