hydra 0.10.1 → 0.10.2
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/VERSION +1 -1
- data/hydra.gemspec +1 -1
- data/lib/hydra/tasks.rb +4 -9
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.2
|
data/hydra.gemspec
CHANGED
data/lib/hydra/tasks.rb
CHANGED
@@ -65,8 +65,6 @@ module Hydra #:nodoc:
|
|
65
65
|
if @config
|
66
66
|
@opts.merge!(:config => @config)
|
67
67
|
else
|
68
|
-
$stderr.write "Hydra: No configuration file found at 'hydra.yml' or 'config/hydra.yml'\n"
|
69
|
-
$stderr.write "Hydra: Using default configuration for a single-core machine\n"
|
70
68
|
@opts.merge!(:workers => [{:type => :local, :runners => 1}])
|
71
69
|
end
|
72
70
|
|
@@ -99,13 +97,11 @@ module Hydra #:nodoc:
|
|
99
97
|
@name = name
|
100
98
|
yield self if block_given?
|
101
99
|
@config = find_config_file
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
100
|
+
if @config
|
101
|
+
define
|
102
|
+
else
|
103
|
+
task "hydra:remote:#{@name}" do ; end
|
106
104
|
end
|
107
|
-
|
108
|
-
define
|
109
105
|
end
|
110
106
|
|
111
107
|
private
|
@@ -115,7 +111,6 @@ module Hydra #:nodoc:
|
|
115
111
|
config = YAML.load_file(@config)
|
116
112
|
workers = config.fetch('workers') { [] }
|
117
113
|
workers = workers.select{|w| w['type'] == 'ssh'}
|
118
|
-
raise "No remote workers" if workers.empty?
|
119
114
|
workers.each do |worker|
|
120
115
|
$stdout.write "==== Hydra Running #{@name} on #{worker['connect']} ====\n"
|
121
116
|
ssh_opts = worker.fetch('ssh_opts') { '' }
|