vagrant-capistrano-push 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +34 -0
- data/.rspec +1 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +122 -0
- data/LICENSE.txt +22 -0
- data/README.md +21 -0
- data/Rakefile +2 -0
- data/lib/vagrant-capistrano-push/version.rb +1 -1
- data/locales/en.yml +5 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/vagrant-capistrano-push/config_spec.rb +71 -0
- data/vagrant-capistrano-push.gemspec +25 -0
- data/vagrant-spec.config.rb +3 -0
- metadata +13 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9775c8e27b17eea715c51bbf9f7679a798c29b23
|
|
4
|
+
data.tar.gz: 50753fe017bbf14d6c551509d5c06e69cd564766
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e0520aaf118b55c98d7deb5cea7a8174d141501d6a998a763ad0a13f2bb2d358faa94077bb8093db8f91bd389c208a92934ade7a4df5a0c6f57469298864ee5
|
|
7
|
+
data.tar.gz: b9bf1a8dec7e8ba44066835c3cd964e5218c0437cb7b5a6257cc579fceba33772227f5044ce907fa99433429075ec999360cdc87fb4ff2d112b0fe7b91b980a6
|
data/.gitignore
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
*.gem
|
|
2
|
+
*.rbc
|
|
3
|
+
/.config
|
|
4
|
+
/coverage/
|
|
5
|
+
/InstalledFiles
|
|
6
|
+
/pkg/
|
|
7
|
+
/spec/reports/
|
|
8
|
+
/test/tmp/
|
|
9
|
+
/test/version_tmp/
|
|
10
|
+
/tmp/
|
|
11
|
+
|
|
12
|
+
## Specific to RubyMotion:
|
|
13
|
+
.dat*
|
|
14
|
+
.repl_history
|
|
15
|
+
build/
|
|
16
|
+
|
|
17
|
+
## Documentation cache and generated files:
|
|
18
|
+
/.yardoc/
|
|
19
|
+
/_yardoc/
|
|
20
|
+
/doc/
|
|
21
|
+
/rdoc/
|
|
22
|
+
|
|
23
|
+
## Environment normalisation:
|
|
24
|
+
/.bundle/
|
|
25
|
+
/lib/bundler/man/
|
|
26
|
+
|
|
27
|
+
# for a library or gem, you might want to ignore these files since the code is
|
|
28
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
29
|
+
# Gemfile.lock
|
|
30
|
+
# .ruby-version
|
|
31
|
+
# .ruby-gemset
|
|
32
|
+
|
|
33
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
34
|
+
.rvmrc
|
data/.rspec
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--format doc --order random --color --fail-fast
|
data/Gemfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
group :development do
|
|
4
|
+
gem "vagrant", git: "https://github.com/mitchellh/vagrant.git"
|
|
5
|
+
gem 'vagrant-spec', git: "https://github.com/mitchellh/vagrant-spec.git"
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
group :plugins do
|
|
9
|
+
gem "vagrant-capistrano-push", path: "."
|
|
10
|
+
end
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
GIT
|
|
2
|
+
remote: https://github.com/mitchellh/vagrant-spec.git
|
|
3
|
+
revision: 1df5a3af81cb7cce568b2eac52b8f6822bcb1d8e
|
|
4
|
+
specs:
|
|
5
|
+
vagrant-spec (0.0.1)
|
|
6
|
+
childprocess (~> 0.5.0)
|
|
7
|
+
log4r (~> 1.1.9)
|
|
8
|
+
rspec (~> 2.14)
|
|
9
|
+
thor (~> 0.18.1)
|
|
10
|
+
|
|
11
|
+
GIT
|
|
12
|
+
remote: https://github.com/mitchellh/vagrant.git
|
|
13
|
+
revision: 6378deacd6c8c73c050d75dd13d3b8872bdcb320
|
|
14
|
+
specs:
|
|
15
|
+
vagrant (1.7.2)
|
|
16
|
+
bundler (>= 1.5.2, < 1.8.0)
|
|
17
|
+
childprocess (~> 0.5.0)
|
|
18
|
+
erubis (~> 2.7.0)
|
|
19
|
+
hashicorp-checkpoint (~> 0.1.1)
|
|
20
|
+
i18n (~> 0.6.0)
|
|
21
|
+
listen (~> 2.8.0)
|
|
22
|
+
log4r (~> 1.1.9, < 1.1.11)
|
|
23
|
+
net-scp (~> 1.1.0)
|
|
24
|
+
net-sftp (~> 2.1)
|
|
25
|
+
net-ssh (>= 2.6.6, < 2.10.0)
|
|
26
|
+
nokogiri (= 1.6.3.1)
|
|
27
|
+
rb-kqueue (~> 0.2.0)
|
|
28
|
+
rest-client (>= 1.6.0, < 2.0)
|
|
29
|
+
wdm (~> 0.1.0)
|
|
30
|
+
winrm (~> 1.3.0)
|
|
31
|
+
winrm-fs (~> 0.1.0)
|
|
32
|
+
|
|
33
|
+
PATH
|
|
34
|
+
remote: .
|
|
35
|
+
specs:
|
|
36
|
+
vagrant-capistrano-push (0.0.1)
|
|
37
|
+
|
|
38
|
+
GEM
|
|
39
|
+
remote: https://rubygems.org/
|
|
40
|
+
specs:
|
|
41
|
+
builder (3.2.2)
|
|
42
|
+
celluloid (0.16.0)
|
|
43
|
+
timers (~> 4.0.0)
|
|
44
|
+
childprocess (0.5.5)
|
|
45
|
+
ffi (~> 1.0, >= 1.0.11)
|
|
46
|
+
diff-lcs (1.2.5)
|
|
47
|
+
erubis (2.7.0)
|
|
48
|
+
ffi (1.9.6)
|
|
49
|
+
gssapi (1.2.0)
|
|
50
|
+
ffi (>= 1.0.1)
|
|
51
|
+
gyoku (1.2.2)
|
|
52
|
+
builder (>= 2.1.2)
|
|
53
|
+
hashicorp-checkpoint (0.1.4)
|
|
54
|
+
hitimes (1.2.2)
|
|
55
|
+
httpclient (2.6.0.1)
|
|
56
|
+
i18n (0.6.11)
|
|
57
|
+
listen (2.8.5)
|
|
58
|
+
celluloid (>= 0.15.2)
|
|
59
|
+
rb-fsevent (>= 0.9.3)
|
|
60
|
+
rb-inotify (>= 0.9)
|
|
61
|
+
little-plugger (1.1.3)
|
|
62
|
+
log4r (1.1.10)
|
|
63
|
+
logging (1.8.2)
|
|
64
|
+
little-plugger (>= 1.1.3)
|
|
65
|
+
multi_json (>= 1.8.4)
|
|
66
|
+
mime-types (2.4.3)
|
|
67
|
+
mini_portile (0.6.0)
|
|
68
|
+
multi_json (1.10.1)
|
|
69
|
+
net-scp (1.1.2)
|
|
70
|
+
net-ssh (>= 2.6.5)
|
|
71
|
+
net-sftp (2.1.2)
|
|
72
|
+
net-ssh (>= 2.6.5)
|
|
73
|
+
net-ssh (2.9.2)
|
|
74
|
+
netrc (0.10.2)
|
|
75
|
+
nokogiri (1.6.3.1)
|
|
76
|
+
mini_portile (= 0.6.0)
|
|
77
|
+
nori (2.4.0)
|
|
78
|
+
rb-fsevent (0.9.4)
|
|
79
|
+
rb-inotify (0.9.5)
|
|
80
|
+
ffi (>= 0.5.0)
|
|
81
|
+
rb-kqueue (0.2.3)
|
|
82
|
+
ffi (>= 0.5.0)
|
|
83
|
+
rest-client (1.7.2)
|
|
84
|
+
mime-types (>= 1.16, < 3.0)
|
|
85
|
+
netrc (~> 0.7)
|
|
86
|
+
rspec (2.99.0)
|
|
87
|
+
rspec-core (~> 2.99.0)
|
|
88
|
+
rspec-expectations (~> 2.99.0)
|
|
89
|
+
rspec-mocks (~> 2.99.0)
|
|
90
|
+
rspec-core (2.99.2)
|
|
91
|
+
rspec-expectations (2.99.2)
|
|
92
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
93
|
+
rspec-mocks (2.99.3)
|
|
94
|
+
rubyntlm (0.4.0)
|
|
95
|
+
rubyzip (1.1.6)
|
|
96
|
+
thor (0.18.1)
|
|
97
|
+
timers (4.0.1)
|
|
98
|
+
hitimes
|
|
99
|
+
uuidtools (2.1.5)
|
|
100
|
+
wdm (0.1.0)
|
|
101
|
+
winrm (1.3.0)
|
|
102
|
+
builder (>= 2.1.2)
|
|
103
|
+
gssapi (~> 1.2)
|
|
104
|
+
gyoku (~> 1.0)
|
|
105
|
+
httpclient (~> 2.2, >= 2.2.0.2)
|
|
106
|
+
logging (~> 1.6, >= 1.6.1)
|
|
107
|
+
nori (~> 2.0)
|
|
108
|
+
rubyntlm (~> 0.4.0)
|
|
109
|
+
uuidtools (~> 2.1.2)
|
|
110
|
+
winrm-fs (0.1.0)
|
|
111
|
+
erubis (~> 2.7)
|
|
112
|
+
logging (~> 1.6, >= 1.6.1)
|
|
113
|
+
rubyzip (~> 1.1)
|
|
114
|
+
winrm (~> 1.3.0)
|
|
115
|
+
|
|
116
|
+
PLATFORMS
|
|
117
|
+
ruby
|
|
118
|
+
|
|
119
|
+
DEPENDENCIES
|
|
120
|
+
vagrant!
|
|
121
|
+
vagrant-capistrano-push!
|
|
122
|
+
vagrant-spec!
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2015 Martin Fenner
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Vagrant Capistrano Push
|
|
2
|
+
|
|
3
|
+
TODO: Write a gem description
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
vagrant plugin install vagrant-capistrano-push
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
TODO: Write usage instructions here
|
|
14
|
+
|
|
15
|
+
## Contributing
|
|
16
|
+
|
|
17
|
+
1. Fork it ( https://github.com/mfenner/vagrant-capistrano-push/fork )
|
|
18
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
19
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
20
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
21
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/locales/en.yml
ADDED
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
require "vagrant-capistrano-push/config"
|
|
2
|
+
require "vagrant-capistrano-push/errors"
|
|
3
|
+
|
|
4
|
+
describe VagrantPlugins::CapistranoPush::Config do
|
|
5
|
+
let(:config) { described_class.new }
|
|
6
|
+
|
|
7
|
+
# Ensure tests are not affected by AWS credential environment variables
|
|
8
|
+
before :each do
|
|
9
|
+
ENV.stub(:[] => nil)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
describe "config.dependencies" do
|
|
13
|
+
|
|
14
|
+
context "when nothing specified" do
|
|
15
|
+
before do
|
|
16
|
+
config.finalize!
|
|
17
|
+
end
|
|
18
|
+
it "should be empty" do
|
|
19
|
+
config.dependencies.should be_empty
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
context "when single plugin specified" do
|
|
24
|
+
before do
|
|
25
|
+
config.depend 'foo', '1.0.0'
|
|
26
|
+
config.finalize!
|
|
27
|
+
end
|
|
28
|
+
it "should contain exactly one plugin" do
|
|
29
|
+
config.dependencies.size.should == 1
|
|
30
|
+
end
|
|
31
|
+
it "should contain the specified plugin" do
|
|
32
|
+
config.dependencies.should == { 'foo' => '1.0.0' }
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
context "when multiple plugins specified" do
|
|
37
|
+
context "with all different plugins" do
|
|
38
|
+
before do
|
|
39
|
+
config.depend 'foo', '1.0.0'
|
|
40
|
+
config.depend 'bar', '1.1.0'
|
|
41
|
+
config.finalize!
|
|
42
|
+
end
|
|
43
|
+
it "should contain all specified plugins" do
|
|
44
|
+
config.dependencies.should == { 'foo' => '1.0.0', 'bar' => '1.1.0' }
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
context "with same plugin twice" do
|
|
48
|
+
it "should fail" do
|
|
49
|
+
begin
|
|
50
|
+
config.depend 'foo', '1.0.0'
|
|
51
|
+
config.depend 'foo', '1.1.0'
|
|
52
|
+
fail "it should have raised 'DuplicatePluginDefinitionError'"
|
|
53
|
+
rescue VagrantPlugins::PluginBundler::Errors::DuplicatePluginDefinitionError
|
|
54
|
+
# expected
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
context "when specifying multiple dependencies in a block" do
|
|
61
|
+
it "should work too" do
|
|
62
|
+
config.deps do
|
|
63
|
+
depend 'foo', '1.0'
|
|
64
|
+
depend 'bar', '2.0'
|
|
65
|
+
end
|
|
66
|
+
config.finalize!
|
|
67
|
+
config.dependencies.should == { 'foo' => '1.0', 'bar' => '2.0' }
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'vagrant-capistrano-push/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "vagrant-capistrano-push"
|
|
8
|
+
spec.version = VagrantPlugins::CapistranoPush::VERSION
|
|
9
|
+
spec.platform = Gem::Platform::RUBY
|
|
10
|
+
spec.authors = ["Martin Fenner"]
|
|
11
|
+
spec.email = "mf@martinfenner.org"
|
|
12
|
+
spec.summary = "Use capistrano with vagrant push."
|
|
13
|
+
spec.description = "Use capistrano with the vagrant push command."
|
|
14
|
+
spec.homepage = "http://www.vagrantup.com"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
|
|
17
|
+
spec.required_rubygems_version = ">= 1.3.6"
|
|
18
|
+
|
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
|
20
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
21
|
+
spec.add_development_dependency "vagrant-spec", "~> 1.4.0"
|
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.1.0"
|
|
23
|
+
|
|
24
|
+
spec.files = `git ls-files`.split($/)
|
|
25
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-capistrano-push
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Fenner
|
|
@@ -72,12 +72,24 @@ executables: []
|
|
|
72
72
|
extensions: []
|
|
73
73
|
extra_rdoc_files: []
|
|
74
74
|
files:
|
|
75
|
+
- ".gitignore"
|
|
76
|
+
- ".rspec"
|
|
77
|
+
- Gemfile
|
|
78
|
+
- Gemfile.lock
|
|
79
|
+
- LICENSE.txt
|
|
80
|
+
- README.md
|
|
81
|
+
- Rakefile
|
|
75
82
|
- lib/vagrant-capistrano-push.rb
|
|
76
83
|
- lib/vagrant-capistrano-push/config.rb
|
|
77
84
|
- lib/vagrant-capistrano-push/errors.rb
|
|
78
85
|
- lib/vagrant-capistrano-push/plugin.rb
|
|
79
86
|
- lib/vagrant-capistrano-push/push.rb
|
|
80
87
|
- lib/vagrant-capistrano-push/version.rb
|
|
88
|
+
- locales/en.yml
|
|
89
|
+
- spec/spec_helper.rb
|
|
90
|
+
- spec/vagrant-capistrano-push/config_spec.rb
|
|
91
|
+
- vagrant-capistrano-push.gemspec
|
|
92
|
+
- vagrant-spec.config.rb
|
|
81
93
|
homepage: http://www.vagrantup.com
|
|
82
94
|
licenses:
|
|
83
95
|
- MIT
|