fanforce-app-factory 2.0.0.rc27 → 2.0.0.rc29

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,8 +36,8 @@ class Fanforce::AppFactory::CLI::Git
36
36
  end
37
37
 
38
38
  def changed_stats
39
- response = `git diff --stat`
40
- response ? response.split("\n").last.split(', ') : response
39
+ stats_line = `git diff --stat`.split("\n").last
40
+ stats_line ? stats_line.split(', ') : Array.new(3)
41
41
  end
42
42
 
43
43
  private
@@ -31,12 +31,18 @@ class Fanforce::AppFactory::CLI::Scripts
31
31
 
32
32
  def push_app(app, environment, command)
33
33
  if command.to_s.include?('.worker')
34
- push_app_worker(app, environment, command.to_s)
35
- elsif [:all,:iron].include?(command)
34
+ return push_app_worker(app, environment, command.to_s)
35
+ end
36
+
37
+ if [:all,:iron].include?(command)
36
38
  push_app_workers(app, environment)
37
- elsif [:all,:env].include?(command)
39
+ end
40
+
41
+ if [:all,:env].include?(command)
38
42
  push_env(app, environment)
39
- elsif [:all,:heroku].include?(command)
43
+ end
44
+
45
+ if [:all,:heroku].include?(command)
40
46
  error 'Heroku is not setup for development' if environment == :development
41
47
  push_heroku(app, environment)
42
48
  end
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class AppFactory
3
- VERSION = '2.0.0.rc27'
3
+ VERSION = '2.0.0.rc29'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-app-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc27
4
+ version: 2.0.0.rc29
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: