shuttle-deploy 0.2.0.beta16 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 935833d3ec183ec62ac3ce2f023d25a1cc12cb4b
4
- data.tar.gz: c4ee22275df09e9db470392fd47167a36801d0e0
3
+ metadata.gz: fa4e0a35af42785ba005aa1538dc85bca9b5c2a3
4
+ data.tar.gz: bb39eacda499496d36a816ffbe5512b0f3567bad
5
5
  SHA512:
6
- metadata.gz: 6d34bb688fc45fadf16979843f927fe1d65a7cedf48ee1bf081cdf49f0fa7cd935b72bb4eb319165c5b335ce8d92f4be767226bd9727e8f1e88adef6cdd50a11
7
- data.tar.gz: 109edb51c04f23de43ce1ee7d3f7df1927734fee738f1124f228638a14eac01f7a1fd607076d9968f36bc182e74509554a2696bbfc97b79124fde1b3468c6dc6
6
+ metadata.gz: 42dc50976cf4fe08d332daecfc9798ecd6a09c4ef39135a718673fb6ec2dd9925e58fbc8fa8006c923a6e3385f99fde77c2d6632dcd7d1c195ed944672706863
7
+ data.tar.gz: df25c79661d951d87cd7f3a26477055086ac221f6b56942073049e8ac70f5bf49e36a92f4a3bdb549a21ea4413c4c1521fcc2d64828cd68530f0cb0c209cc797
data/lib/shuttle.rb CHANGED
@@ -1,38 +1,38 @@
1
- require 'terminal_helpers'
2
- require 'net/ssh/session'
3
- require 'chronic_duration'
4
- require 'toml'
5
- require 'hashr'
6
- require 'yaml'
7
- require 'safe_yaml'
8
- require 'toml'
9
- require 'digest/sha1'
10
- require 'logger'
1
+ require "terminal_helpers"
2
+ require "net/ssh/session"
3
+ require "chronic_duration"
4
+ require "toml"
5
+ require "hashr"
6
+ require "yaml"
7
+ require "safe_yaml"
8
+ require "toml"
9
+ require "digest/sha1"
10
+ require "logger"
11
11
 
12
- require 'shuttle/version'
13
- require 'shuttle/errors'
12
+ require "shuttle/version"
13
+ require "shuttle/errors"
14
14
 
15
15
  module Shuttle
16
- autoload :CLI, 'shuttle/cli'
17
- autoload :Session, 'shuttle/session'
18
- autoload :Runner, 'shuttle/runner'
19
- autoload :Deploy, 'shuttle/deploy'
20
- autoload :Target, 'shuttle/target'
21
- autoload :Helpers, 'shuttle/helpers'
22
- autoload :PathHelpers, 'shuttle/path_helpers'
23
- autoload :Strategy, 'shuttle/strategy'
24
- autoload :Hook, 'shuttle/hook'
25
- autoload :Generator, 'shuttle/generator'
16
+ autoload :CLI, "shuttle/cli"
17
+ autoload :Session, "shuttle/session"
18
+ autoload :Runner, "shuttle/runner"
19
+ autoload :Deploy, "shuttle/deploy"
20
+ autoload :Target, "shuttle/target"
21
+ autoload :Helpers, "shuttle/helpers"
22
+ autoload :PathHelpers, "shuttle/path_helpers"
23
+ autoload :Strategy, "shuttle/strategy"
24
+ autoload :Hook, "shuttle/hook"
25
+ autoload :Generator, "shuttle/generator"
26
26
 
27
- autoload :Static, 'shuttle/deployment/static'
28
- autoload :Php, 'shuttle/deployment/php'
29
- autoload :Wordpress, 'shuttle/deployment/wordpress'
30
- autoload :Ruby, 'shuttle/deployment/ruby'
31
- autoload :Rails, 'shuttle/deployment/rails'
32
- autoload :Nodejs, 'shuttle/deployment/nodejs'
27
+ autoload :Static, "shuttle/deployment/static"
28
+ autoload :Php, "shuttle/deployment/php"
29
+ autoload :Wordpress, "shuttle/deployment/wordpress"
30
+ autoload :Ruby, "shuttle/deployment/ruby"
31
+ autoload :Rails, "shuttle/deployment/rails"
32
+ autoload :Nodejs, "shuttle/deployment/nodejs"
33
33
 
34
34
  module Support
35
- autoload :Bundler, 'shuttle/support/bundler'
36
- autoload :Thin, 'shuttle/support/thin'
35
+ autoload :Bundler, "shuttle/support/bundler"
36
+ autoload :Thin, "shuttle/support/thin"
37
37
  end
38
38
  end
@@ -117,6 +117,7 @@ module Shuttle
117
117
  integration.error(message)
118
118
  end
119
119
 
120
+ integration.disable_history
120
121
  integration.write_lock
121
122
  integration.export_environment
122
123
  integration.send(command.to_sym)
@@ -249,6 +249,10 @@ module Shuttle
249
249
  ssh.run("echo #{version} > #{release_path}/RELEASE")
250
250
  end
251
251
 
252
+ def disable_history
253
+ ssh.run("set +o history")
254
+ end
255
+
252
256
  def export_environment
253
257
  ssh.export_hash(
254
258
  'DEPLOY_APP' => config.app.name,
@@ -30,6 +30,7 @@ module Shuttle
30
30
  "bundle install",
31
31
  "--quiet",
32
32
  "--path #{bundle_path}",
33
+ "--retry=3",
33
34
  "--binstubs",
34
35
  "--deployment"
35
36
  ].join(' ')
@@ -42,4 +43,4 @@ module Shuttle
42
43
  end
43
44
  end
44
45
  end
45
- end
46
+ end
@@ -1,3 +1,3 @@
1
1
  module Shuttle
2
- VERSION = "0.2.0.beta16"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path('../lib/shuttle/version', __FILE__)
1
+ require File.expand_path("../lib/shuttle/version", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "shuttle-deploy"
@@ -8,18 +8,19 @@ Gem::Specification.new do |s|
8
8
  s.homepage = "https://github.com/sosedoff/shuttle"
9
9
  s.authors = ["Dan Sosedoff"]
10
10
  s.email = ["dan.sosedoff@gmail.com"]
11
-
12
- s.add_development_dependency 'rake', '~> 10'
13
- s.add_development_dependency 'rspec', '~> 2.13'
14
- s.add_development_dependency 'simplecov', '~> 0.7'
11
+ s.license = "MIT"
15
12
 
16
- s.add_dependency 'net-ssh', '~> 2.6'
17
- s.add_dependency 'net-ssh-session', '~> 0.1'
18
- s.add_dependency 'terminal_helpers', '~> 0.1'
19
- s.add_dependency 'chronic_duration', '~> 0.9'
20
- s.add_dependency 'hashr', '~> 0.0.22'
21
- s.add_dependency 'safe_yaml', '~> 0.9'
22
- s.add_dependency 'toml', '~> 0.0'
13
+ s.add_development_dependency "rake", "~> 10"
14
+ s.add_development_dependency "rspec", "~> 2.13"
15
+ s.add_development_dependency "simplecov", "~> 0.7"
16
+
17
+ s.add_dependency "net-ssh", "~> 2.6"
18
+ s.add_dependency "net-ssh-session", "~> 0.1"
19
+ s.add_dependency "terminal_helpers", "~> 0.1"
20
+ s.add_dependency "chronic_duration", "~> 0.9"
21
+ s.add_dependency "hashr", "~> 0.0.22"
22
+ s.add_dependency "safe_yaml", "~> 1.0"
23
+ s.add_dependency "toml", "~> 0.0"
23
24
 
24
25
  s.files = `git ls-files`.split("\n")
25
26
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shuttle-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta16
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-30 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: '0.9'
131
+ version: '1.0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ~>
137
137
  - !ruby/object:Gem::Version
138
- version: '0.9'
138
+ version: '1.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: toml
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +203,8 @@ files:
203
203
  - spec/spec_helper.rb
204
204
  - spec/target_spec.rb
205
205
  homepage: https://github.com/sosedoff/shuttle
206
- licenses: []
206
+ licenses:
207
+ - MIT
207
208
  metadata: {}
208
209
  post_install_message:
209
210
  rdoc_options: []
@@ -216,12 +217,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
217
  version: '0'
217
218
  required_rubygems_version: !ruby/object:Gem::Requirement
218
219
  requirements:
219
- - - '>'
220
+ - - '>='
220
221
  - !ruby/object:Gem::Version
221
- version: 1.3.1
222
+ version: '0'
222
223
  requirements: []
223
224
  rubyforge_project:
224
- rubygems_version: 2.0.3
225
+ rubygems_version: 2.1.11
225
226
  signing_key:
226
227
  specification_version: 4
227
228
  summary: Minimalistic deployment tool