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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/hydra.gemspec +1 -1
  3. data/lib/hydra/tasks.rb +4 -9
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.1
1
+ 0.10.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hydra}
8
- s.version = "0.10.1"
8
+ s.version = "0.10.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Gauthier"]
@@ -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
- unless @config
104
- $stderr.write "No config file. Can't run a remote task without remote workers\n"
105
- return
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') { '' }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Gauthier