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