Class: Fatbundle::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/fatbundle/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CLI

Returns a new instance of CLI.



5
6
7
# File 'lib/fatbundle/cli.rb', line 5

def initialize(args)
  @script = args[0]
end

Instance Method Details

#runObject



9
10
11
12
13
# File 'lib/fatbundle/cli.rb', line 9

def run
  preamble = Fatbundle::Packager.new.pack
  puts preamble
  puts File.read(@script) if @script
end