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