lib/hydra/tasks.rb in justinf-hydra-0.23.5 vs lib/hydra/tasks.rb in justinf-hydra-0.23.6
- old
+ new
@@ -271,10 +271,10 @@
private
def define
desc "Run #{@name} remotely on all workers"
task "hydra:remote:#{@name}" do
- config = YAML.load_file(@config)
+ config = Hydra::ProxyConfig.load(IO.read(@config))
environment = config.fetch('environment') { 'test' }
workers = config.fetch('workers') { [] }
workers = workers.select{|w| w['type'] == 'ssh'}
@command = "RAILS_ENV=#{environment} rake #{@name}" unless @command