Class: Fatbundle::CLI
- Inherits:
-
Object
- Object
- Fatbundle::CLI
- Defined in:
- lib/fatbundle/cli.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
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
#run ⇒ Object
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 |