antismoker 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module AntiSmoker
13
13
  error_type = ::Rake::CommandFailedError
14
14
  end
15
15
 
16
- roles = context.fetch(:antismoker_roles, false)
16
+ roles = context.fetch(:antismoker_roles, [:app])
17
17
  opts[:roles] = roles if roles
18
18
 
19
19
  context.send :namespace, :antismoker do
@@ -30,12 +30,13 @@ module AntiSmoker
30
30
  args += context.fetch(:antismoker_flags, [])
31
31
  args << "RAILS_ENV=#{rails_env}"
32
32
 
33
+ run_opts = context.fetch(:antismoker_run_options, {})
33
34
  begin
34
- run "cd #{app_path} && #{rake_cmd} #{args.join(' ')} #{antismoker_task}"
35
+ run "cd #{app_path} && #{rake_cmd} #{args.join(' ')} #{antismoker_task}", run_opts
35
36
  antismoker_success
36
- rescue => error
37
- logger.info("[ERROR] #{error}")
37
+ rescue
38
38
  antismoker_failure
39
+ abort
39
40
  ensure
40
41
  finalize_antismoker
41
42
  end
@@ -1,3 +1,3 @@
1
1
  module AntiSmoker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antismoker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2013-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -74,3 +74,4 @@ signing_key:
74
74
  specification_version: 3
75
75
  summary: Yet another HTTP smoke testing framework.
76
76
  test_files: []
77
+ has_rdoc: