capricorn 0.2.04 → 0.2.05
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,12 +7,17 @@ module Capricorn
|
|
7
7
|
desc 'list', 'show all managed satellites'
|
8
8
|
method_options :token => :optional
|
9
9
|
def list
|
10
|
-
Capricorn.client(options[:token]).satellites
|
10
|
+
satellites = Capricorn.client(options[:token]).satellites
|
11
|
+
satellites.size.times do |i|
|
12
|
+
sat = satellites[i]
|
11
13
|
puts sat.domain
|
12
14
|
sat.engines.each do |name, options|
|
13
15
|
puts "- #{name} #{options.inspect}"
|
14
16
|
end
|
15
17
|
end
|
18
|
+
rescue => e
|
19
|
+
p e
|
20
|
+
puts e.backtrace
|
16
21
|
end
|
17
22
|
|
18
23
|
desc 'install DOMAIN', 'install a satellite'
|
@@ -15,6 +15,10 @@ module Capricorn
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def initialize(engines)
|
18
|
+
original_paths = [Gem.path].flatten
|
19
|
+
Gem.refresh
|
20
|
+
Gem.send(:set_paths, original_paths.compact.join(File::PATH_SEPARATOR))
|
21
|
+
|
18
22
|
specs = engines.collect do |k,r|
|
19
23
|
s = Gem.source_index.find_name(k, Gem::Requirement.new(r[:version] || ">= 0.0.0"))
|
20
24
|
s.last
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capricorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.05
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-18 00:00:00 +02:00
|
13
13
|
default_executable: capricorn
|
14
14
|
dependencies: []
|
15
15
|
|