fanforce-factory 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWExMGJlMmQ4OTc2YmM3MDZiMGEwMTAxZDJjYmJkODc0ZmRhYTk3Mg==
4
+ ZmMyODQxMjMyMTQ3NDdlNGVhZmI2YjNkMzQ5NGUzOTIyNGE5ZjAzMg==
5
5
  data.tar.gz: !binary |-
6
- ZTQ2NzRjMmM2MTZhNjdjZTZhZTFiMzQ0NDkyYjQwM2U0OWU5NDk2YQ==
6
+ NTM2YjQ2MzhlNjhhNjFkYTVjOTQyZGQ4YTM0MDg4OTdiNjZlNGNmNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjFmZjRkNzVhYWJhZjljNDlhYTE1YzBlNjRkZDQ3NTg2MGI2Y2ZmMDU3ZDNk
10
- ZGNlMDBkMzUzNTFkMTNjYTYwMGJhYWI1MjQ4NDRmZjlhMDUzZmZjMDY5MWEx
11
- NDJjY2NjMDJhMTdiNWNlODE5ZTc2ZTMwNWJlYjdhZjlhNDY1Y2M=
9
+ YmMxYzdhNjlhNWZlYTQ4M2VjODNiYWQxM2Q1NWIzZDkwZTU3ODY2YjEwODhl
10
+ MjZhODZhYzFhMDg1MTM2NGFjM2E0YzdlODNmNDkwN2E1MTQ2ZWJhYWZlZGM1
11
+ Njg2ZTQ2Zjc4ZTZhMjJmY2M3Nzc4OTEyZjRiYTM5ZTMzMTIyNWU=
12
12
  data.tar.gz: !binary |-
13
- OGVlNjcwNmUxNzE2OTkxMmQyMjM1NzE5YjZmMmMyZTk3NjgzMzI2Y2FlOWE2
14
- ZTBjMDZkYjg3MzNiMmVkMWFjNzhjNjUzYTZiNmU3NWZkNzhiYjg5NDdhNWQ2
15
- ZGY2YjhmMmZkNWIwYzczMTYyMTYwMzc5NzI2NzFhYjJjN2E1NjM=
13
+ MDhjZmQ3ZjlkNWZhMmI0OGFjY2EyYzVmMTI0NDI0YzM4Yzg5Y2U0ZDQ2OTlh
14
+ MjcyYzhjMmEzM2FhNjliYjQwOTU0ODNmZTNhNWViMTdkMmU1NDdmMGZiZGNi
15
+ ODRmMDM0NjZkYTAwYWVkZjFlYmRlZmE1NTFhYjhkMzc1NGYxNTI=
@@ -389,7 +389,7 @@ class Fanforce::Factory
389
389
 
390
390
  workers.each do |filename|
391
391
  code_name = "#{addon._id}-#{filename.gsub('.worker', '')}"
392
- remove_single_worker(code_name, iron_worker) if command == :reset
392
+ remove_single_worker(code_name, iron_worker, environment) if command == :reset
393
393
 
394
394
  puts "#{'Uploading'.format(:green,:bold)} #{addon._id}-#{filename.gsub('.worker', '')} to #{environment.to_s.titleize}..."
395
395
  code = IronWorkerNG::Code::Base.new(:workerfile => "#{addon.dir}/workers/#{filename}")
@@ -401,7 +401,7 @@ class Fanforce::Factory
401
401
  end
402
402
  end
403
403
 
404
- def remove_single_worker(code_name, iron_worker)
404
+ def remove_single_worker(code_name, iron_worker, environment)
405
405
  iron_worker.codes.list.each do |code|
406
406
  next if code.name != code_name
407
407
  iron_worker.codes.delete(code.id)
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Factory
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark