rudy 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rudyfile +5 -4
- data/lib/rudy.rb +1 -1
- data/lib/rudy/cli/routines.rb +2 -2
- data/lib/rudy/config.rb +1 -1
- data/lib/rudy/routines/shutdown.rb +2 -0
- data/rudy.gemspec +1 -1
- metadata +1 -1
data/Rudyfile
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
# Rudy automatically looks for configuration files in the
|
6
6
|
# following locations (in this order):
|
7
7
|
#
|
8
|
-
# ~/.rudy/config
|
9
8
|
# ./.rudy/config
|
9
|
+
# ~/.rudy/config
|
10
10
|
#
|
11
11
|
# ./Rudyfile
|
12
12
|
# ./config/rudy/*.rb
|
@@ -17,11 +17,12 @@
|
|
17
17
|
# NOT OVERRIDDEN. It's ADDED / APPENDED. This means you can
|
18
18
|
# split configuration across many files as you please.
|
19
19
|
#
|
20
|
-
# There are three sections: accounts, defaults, machines.
|
20
|
+
# There are three sections: accounts, defaults, machines, and routines.
|
21
21
|
#
|
22
22
|
# By convention, accounts and defaults go in ~/.rudy/config or ./.rudy/config
|
23
|
-
# machines configuration goes in ./Rudyfile or
|
24
|
-
|
23
|
+
# machines and routines configuration goes in ./Rudyfile or
|
24
|
+
# ./config/rudy/machines.rb and ./config/rudy/routines.rb
|
25
|
+
#
|
25
26
|
|
26
27
|
# --------------------------------------------------------- MACHINES --------
|
27
28
|
# The machines block describes the "physical" characteristics
|
data/lib/rudy.rb
CHANGED
data/lib/rudy/cli/routines.rb
CHANGED
@@ -13,8 +13,8 @@ module Rudy; module CLI;
|
|
13
13
|
puts machine.to_s
|
14
14
|
end
|
15
15
|
|
16
|
-
if @@global.environment == @@config.
|
17
|
-
@@global.role == @@config.
|
16
|
+
if @@global.environment == @@config.defaults.environment &&
|
17
|
+
@@global.role == @@config.defaults.role
|
18
18
|
puts
|
19
19
|
puts "Try: #{$0} -u root ssh"
|
20
20
|
end
|
data/lib/rudy/config.rb
CHANGED
data/rudy.gemspec
CHANGED