Class: Cumulus::SQS::Commands

Inherits:
Common::Commands show all
Defined in:
lib/sqs/Commands.rb

Class Method Summary collapse

Methods inherited from Common::Commands

execute, format_message, help_message, manager_name, parse, usage_message, verify

Class Method Details



6
7
8
9
10
11
# File 'lib/sqs/Commands.rb', line 6

def self.banner_message
  format_message [
    "SQS: Manage SQS",
    "\tDiff and sync SQS configuration with AWS.",
  ]
end

.command_detailsObject



13
14
15
16
17
18
19
20
21
# File 'lib/sqs/Commands.rb', line 13

def self.command_details
  format_message [
    ["diff", "print out differences between local configuration and AWS (supplying the name of the queue will diff only that queue)"],
    ["list", "list the locally defined queues"],
    ["urls", "list the url for each locally defined queue"],
    ["sync", "sync local queue definitions with AWS (supplying the name of the queue will sync only that queue)"],
    ["migrate", "migrate AWS configuration to Cumulus"],
  ]
end

.managerObject



23
24
25
26
# File 'lib/sqs/Commands.rb', line 23

def self.manager
  require "sqs/manager/Manager"
  Cumulus::SQS::Manager.new
end

.valid_optionsObject



28
29
30
# File 'lib/sqs/Commands.rb', line 28

def self.valid_options
  [["diff", "list", "migrate", "sync", "urls"]]
end