Sha256: 99fb2de720b72c5452f591bd12e864f299e1cbadb3da7462e4a8ace1e58ec797

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

module Negroku::CLI

  desc 'Create and manage your app'
  command :app do |app|

    app.desc 'Bootstrap your application with capistrano and negroku'
    app.command :create do |create|
      create.action do |global_options,options,args|

        Negroku::Bootstrap.install

      end
    end

    app.desc 'Bootstrap your application with capistrano and negroku'
    app.command :stage do |stage|

      stage.desc 'Bootstrap your application with capistrano and negroku'
      stage.command :add do |add|
        add.action do |global_options,options,args|

          Negroku::Bootstrap.add_stage

        end
      end

      stage.desc 'Bootstrap your application with capistrano and negroku'
      stage.command :remove do |remove|
        remove.action do |global_options,options,args|

          Negroku::Bootstrap.remove_stage args.first

        end
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
negroku-2.0.0.pre2 lib/negroku/cli/commands/app.rb
negroku-2.0.0.pre1 lib/negroku/cli/commands/app.rb