Sha256: 14a6f67dfa8029f077ff7445822742e4247e845ef5cb25a0aab01d72034dfce1

Contents?: true

Size: 522 Bytes

Versions: 19

Compression:

Stored size: 522 Bytes

Contents

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

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


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

Version data entries

19 entries across 19 versions & 1 rubygems

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