Sha256: 0383d902ff8ba0cc9f8b0f4c95c6ed813350c91f09b379741ad303f50f3c752c

Contents?: true

Size: 809 Bytes

Versions: 12

Compression:

Stored size: 809 Bytes

Contents

# encoding: UTF-8

require 'pp'

require_relative '../shared'
require_relative '../../packer/packer'

Grache::CLI.module_eval do
  desc 'Manage your pack'
  command :pack do |c|
    c.desc 'Build pack'
    c.command :build do |cmd|
      cmd.action do |global_options, options, _args|
        _opts = options.merge(global_options)
        Grache::Packer.new.pack
      end
    end

    c.desc 'Install pack'
    c.command :install do |cmd|
      cmd.action do |global_options, options, _args|
        _opts = options.merge(global_options)
        Grache::Packer.new.install
      end
    end

    c.desc 'Zip created pack'
    c.command :zip do |cmd|
      cmd.action do |global_options, options, _args|
        _opts = options.merge(global_options)
        Grache::Packer.new.zip
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grache-0.0.11 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.10 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.9 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.8 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.7 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.6 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.5 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.4 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.3 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.2 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.2.pre.rc8 lib/grache/cli/commands/pack_cmd.rb
grache-0.0.2.pre.rc4 lib/grache/cli/commands/pack_cmd.rb