Class: Zipper::CLI

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

Instance Method Summary collapse

Instance Method Details

#zip(config) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/zipper/cli.rb', line 9

def zip( config )
    puts "Build with config #{config}"
    file = File.read(config)
    json_config = JSON.parse(file)

    generator = Zipper::ZipFileGenerator.new(json_config)
    generator.write
end