Sha256: d25d747a9a2c0ba5531769d738a7badcaaa33ee305aac110386e58574cff2017

Contents?: true

Size: 511 Bytes

Versions: 19

Compression:

Stored size: 511 Bytes

Contents

require 'guignol/commands/base'
require 'guignol/models/instance'

Guignol::Shell.class_eval do
  desc 'create PATTERNS', 'Create and start all instances matching PATTERNS and their volumes'
  def create(*patterns)
    if patterns.empty?
      raise Thor::Error.new('You must specify at least one PATTERN.')
    end
    Guignol::Commands::Create.new(patterns).run
  end
end


module Guignol::Commands
  class Create < Base
    def run_on_server(instance, options = {})
      instance.create
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
guignol-0.3.16 lib/guignol/commands/create.rb
guignol-0.3.15 lib/guignol/commands/create.rb
guignol-0.3.14 lib/guignol/commands/create.rb
guignol-0.3.13 lib/guignol/commands/create.rb
guignol-0.3.12 lib/guignol/commands/create.rb
guignol-0.3.10 lib/guignol/commands/create.rb
guignol-0.3.9 lib/guignol/commands/create.rb
guignol-0.3.8 lib/guignol/commands/create.rb
guignol-0.3.7 lib/guignol/commands/create.rb
guignol-0.3.6.2 lib/guignol/commands/create.rb
guignol-0.3.6.1 lib/guignol/commands/create.rb
guignol-0.3.6 lib/guignol/commands/create.rb
guignol-0.3.5.1 lib/guignol/commands/create.rb
guignol-0.3.5 lib/guignol/commands/create.rb
guignol-0.3.4 lib/guignol/commands/create.rb
guignol-0.3.3 lib/guignol/commands/create.rb
guignol-0.3.2 lib/guignol/commands/create.rb
guignol-0.3.1 lib/guignol/commands/create.rb
guignol-0.3.0 lib/guignol/commands/create.rb