orca 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +7 -0
- data/lib/orca/cli.rb +6 -6
- data/lib/orca/node.rb +5 -1
- data/orca.gemspec +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -76,6 +76,13 @@ So here are some examples (assuming you have a package called "app" and a node c
|
|
76
76
|
|
77
77
|
orca apply app server
|
78
78
|
orca remove app server
|
79
|
+
orca validate app server
|
80
|
+
|
81
|
+
If you have a package with the same name as a group or server you can abreviate this to...
|
82
|
+
|
83
|
+
orca apply server
|
84
|
+
orca remove server
|
85
|
+
orca validate server
|
79
86
|
|
80
87
|
You can also directly trigger actions from the CLI like so...
|
81
88
|
|
data/lib/orca/cli.rb
CHANGED
@@ -10,18 +10,18 @@ class Orca::Cli < Thor
|
|
10
10
|
class_option :verbose, :type => :boolean, :desc => "print all SSH output, useful for debugging"
|
11
11
|
class_option :'skip-dependancies', :type => :boolean, :desc => "Don't validate and run dependancies."
|
12
12
|
|
13
|
-
desc "apply PACKAGE_NAME GROUP_OR_NODE_NAME", "apply the given package onto the given named group"
|
14
|
-
def apply(package, group)
|
13
|
+
desc "apply PACKAGE_NAME [GROUP_OR_NODE_NAME]", "apply the given package onto the given named group"
|
14
|
+
def apply(package, group=package)
|
15
15
|
run_command(package, group, :apply)
|
16
16
|
end
|
17
17
|
|
18
|
-
desc "remove PACKAGE_NAME GROUP_OR_NODE_NAME", "remove the given package onto the given named group"
|
19
|
-
def remove(package, group)
|
18
|
+
desc "remove PACKAGE_NAME [GROUP_OR_NODE_NAME]", "remove the given package onto the given named group"
|
19
|
+
def remove(package, group=package)
|
20
20
|
run_command(package, group, :remove)
|
21
21
|
end
|
22
22
|
|
23
|
-
desc "validate PACKAGE_NAME GROUP_OR_NODE_NAME", "run validation steps on the given named group"
|
24
|
-
def validate(package, group)
|
23
|
+
desc "validate PACKAGE_NAME [GROUP_OR_NODE_NAME]", "run validation steps on the given named group"
|
24
|
+
def validate(package, group=package)
|
25
25
|
run_command(package, group, :validate)
|
26
26
|
end
|
27
27
|
|
data/lib/orca/node.rb
CHANGED
data/orca.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
11
11
|
gem.name = "orca"
|
12
12
|
gem.require_paths = ["lib"]
|
13
|
-
gem.version = '0.3.
|
13
|
+
gem.version = '0.3.2'
|
14
14
|
gem.add_dependency('colored')
|
15
15
|
gem.add_dependency('net-ssh')
|
16
16
|
gem.add_dependency('net-sftp')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -132,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
segments:
|
134
134
|
- 0
|
135
|
-
hash: -
|
135
|
+
hash: -77465203265155118
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
none: false
|
138
138
|
requirements:
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
segments:
|
143
143
|
- 0
|
144
|
-
hash: -
|
144
|
+
hash: -77465203265155118
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
147
|
rubygems_version: 1.8.23
|