travis-deploy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module Travis
18
18
 
19
19
  def invoke
20
20
  store unless options['source']
21
- push
21
+ push unless @env == 'development'
22
22
  end
23
23
 
24
24
  def pretend
@@ -48,9 +48,13 @@ module Travis
48
48
  @keychain ||= Keychain.new(app, shell)
49
49
  end
50
50
 
51
+ def development_config
52
+ { development: Builder.new(keychain, 'development').build }
53
+ end
54
+
51
55
  def store
52
56
  backup if backup?
53
- File.open(filename, 'w+') { |f| f.write(yaml_config) }
57
+ File.open(filename, 'w+') { |f| f.write(YAML.dump(development_config)) }
54
58
  end
55
59
 
56
60
  def push
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'travis-deploy'
5
- gem.version = '0.2.0'
5
+ gem.version = '0.2.1'
6
6
 
7
7
  gem.authors = ['Travis Deploy Tool']
8
8
  gem.email = ['contact@travis-ci.org']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2013-02-01 00:00:00.000000000 Z
12
+ date: 2014-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 1.8.24
128
+ rubygems_version: 1.8.23
129
129
  signing_key:
130
130
  specification_version: 3
131
131
  summary: A command-line interface to Travis CI
@@ -136,3 +136,4 @@ test_files:
136
136
  - spec/travis/deploy/deploy_spec.rb
137
137
  - spec/travis/deploy/secure_key_spec.rb
138
138
  - spec/travis/keychain_spec.rb
139
+ has_rdoc: