Class: Dnnbundler::CLI
- Inherits:
-
Thor
- Object
- Thor
- Dnnbundler::CLI
- Defined in:
- lib/dnnbundler/cli.rb
Instance Method Summary collapse
Instance Method Details
#build(config) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dnnbundler/cli.rb', line 9 def build( config ) puts "Build with config #{config}" file = File.read(config) data_hash = JSON.parse(file) input_entries = data_hash["entries"] ignore_entries = data_hash["excludeEntries"] zip_file_name = data_hash["outFileName"] generator = ZipFileGenerator.new(data_hash) generator.write end |