Module: Ridoku

Defined in:
lib/ridoku.rb,
lib/options.rb,
lib/ridoku/db.rb,
lib/ridoku/env.rb,
lib/ridoku/log.rb,
lib/ridoku/run.rb,
lib/ridoku/base.rb,
lib/ridoku/cook.rb,
lib/ridoku/cron.rb,
lib/ridoku/dump.rb,
lib/ridoku/list.rb,
lib/ridoku/backup.rb,
lib/ridoku/create.rb,
lib/ridoku/deploy.rb,
lib/ridoku/domain.rb,
lib/ridoku/service.rb,
lib/ridoku/service.rb,
lib/ridoku/version.rb,
lib/ridoku/workers.rb,
lib/ridoku/defaults.rb,
lib/ridoku/packages.rb,
lib/ridoku/maintenance.rb,
lib/ridoku/config_wizard.rb,
lib/ridoku/rails_defaults.rb,
lib/ridoku/services/postgres.rb,
lib/ridoku/services/rabbitmq.rb

Defined Under Namespace

Modules: Services Classes: Backup, Base, ClassProperties, ConfigWizard, Cook, Create, Cron, Db, Deploy, Domain, Dump, Env, InvalidConfig, List, Log, Maintenance, NoSshAccess, Packages, PropertyDefaultsUndefined, RailsDefaults, Run, Service, Worker

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.add_options(opts) ⇒ Object



133
134
135
# File 'lib/options.rb', line 133

def self.add_options(opts)
  @options<< opts
end

.commandsObject



8
9
10
# File 'lib/ridoku.rb', line 8

def self.commands
  @commands
end

.init_optionsObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/options.rb', line 4

def self.init_options
  @options = [
    [ '--debug', '-D', GetoptLong::NO_ARGUMENT,<<-EOF

     Turn on debugging outputs (for AWS and Exceptions).
  EOF
    ],
    [ '--no-wait', '-n', GetoptLong::NO_ARGUMENT,<<-EOF

     When issuing a command, do not wait for the command to return.
  EOF
    ],
    [ '--key', '-k', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<key>
     Use the specified key as the AWS_ACCESS_KEY   
  EOF
    ],
    [ '--force', '-F', GetoptLong::NO_ARGUMENT,<<-EOF

     Used to force an operation (e.g., deploy)
  EOF
    ],
    [ '--secret', '-s', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<secret>
     Use the specified secret as the AWS_SECRET_KEY   
  EOF
    ],
    [ '--set-app', '-A', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<app>
     Use the specified App as the default Application.
  EOF
    ],
    [ '--set-backup-bucket', '-B', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<bucket name>
     Use the specified bucket name as the default Backup Bucket.
  EOF
    ],
    [ '--backup-bucket', '-b', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<bucket name>
     Use the specified bucket name as the current Backup Bucket.
  EOF
    ],
    [ '--set-stack', '-S', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<stack>
     Use the specified Stack as the default Stack.
  EOF
    ],
    [ '--set-user', '-U', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<user>
     Use the specified user as the default login user in 'run:shell'.
  EOF
    ],
    [ '--set-ssh-key', '-K', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<key file>
     Use the specified file as the default ssh key file.
  EOF
    ],
    [ '--ssh-key', '-f', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<key file>
     Override the default ssh key file for this call.
  EOF
    ],
    [ '--app', '-a', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<app>
     Override the default App name for this call.
  EOF
    ],
    [ '--stack', '-t', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<stack>
     Override the default Stack name for this call.
  EOF
    ],
    [ '--instances', '-i', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<instances>
     Run command on specified instances; valid delimiters: ',' or ':'
     example:
       ridoku deploy --instances mukujara,tanuki
  EOF
    ],
    [ '--user', '-u', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<user>
     Override the default user name for this call.
  EOF
    ],
    [ '--comment', '-m', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<message>
     Optional for: #{$stderr.colorize('deploy', :bold)}
     Add the specified message to the deploy:* action.
  EOF
    ],
    [ '--domains', '-d', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<domains>
     Optional for: #{$stderr.colorize('create:app', :bold)}
     Add the specified domains to the newly created application.
  EOF
    ],
    [ '--lines', '-L', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
<lines>
     Optional for: #{$stderr.colorize('log:*', :bold)}
     Print the specified number of lines.
  EOF
    ],
    [ '--migrate', '-M', GetoptLong::NO_ARGUMENT,<<-EOF

     Optional for: #{$stderr.colorize('deploy', :bold)}
     Migrate the database after deploying the source.
  EOF
    ],
    [ '--layer', '-l', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
  EOF
    ],
    [ '--repo', '-r', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
  EOF
    ],
    [ '--service-arn', '-V', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
  EOF
    ],
    [ '--instance-arn', '-N', GetoptLong::REQUIRED_ARGUMENT,<<-EOF
  EOF
    ],
    [ '--practice', '-p', GetoptLong::NO_ARGUMENT,<<-EOF
  EOF
    ],
    [ '--wizard', '-w', GetoptLong::NO_ARGUMENT,<<-EOF
  EOF
    ],
  ]
end

.optionsObject



137
138
139
# File 'lib/options.rb', line 137

def self.options
  @options
end

.register(name) ⇒ Object



4
5
6
# File 'lib/ridoku.rb', line 4

def self.register(name)
  (@commands ||= []) << name.to_s
end