aktion_cap 0.1.1 → 0.1.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.
- data/.travis.yml +6 -0
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/Rakefile +1 -1
- data/lib/aktion_cap/tasks.rb +1 -1
- data/lib/aktion_cap/version.rb +1 -1
- data/lib/dummy_rails_template.rb +1 -2
- data/script/travis +4 -0
- data/spec/capify_spec.rb +1 -1
- metadata +5 -3
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# AktionCap
|
|
2
2
|
|
|
3
|
+
[](https://travis-ci.org/AktionLab/atkion_cap)
|
|
4
|
+
|
|
3
5
|
A metagem for use with capistrano. It includes capistrano with multistage extension, rvm integration and rake tasks to make capistrano management simpler.
|
|
4
6
|
|
|
5
7
|
## Installation
|
data/Rakefile
CHANGED
data/lib/aktion_cap/tasks.rb
CHANGED
|
@@ -62,7 +62,7 @@ set :application, '#{opts[:application]}'
|
|
|
62
62
|
set :repository, '#{opts[:repository]}'
|
|
63
63
|
set :scm, :#{opts[:scm]}
|
|
64
64
|
set :deploy_via, :remote_cache
|
|
65
|
-
set
|
|
65
|
+
set(:deploy_to) {"/var/www/\#{application}/\#{stage}"}
|
|
66
66
|
set :rvm_type, :user
|
|
67
67
|
set :use_sudo, false
|
|
68
68
|
|
data/lib/aktion_cap/version.rb
CHANGED
data/lib/dummy_rails_template.rb
CHANGED
|
@@ -4,7 +4,7 @@ run "echo > Gemfile"
|
|
|
4
4
|
|
|
5
5
|
add_source :rubygems
|
|
6
6
|
gem 'rails'
|
|
7
|
-
gem 'aktion_cap', path
|
|
7
|
+
gem 'aktion_cap', :path => '..'
|
|
8
8
|
|
|
9
9
|
run "bundle install"
|
|
10
10
|
|
|
@@ -12,7 +12,6 @@ run "rm public/index.html"
|
|
|
12
12
|
run "rm -rf doc"
|
|
13
13
|
run "rm README.rdoc"
|
|
14
14
|
run "rm -rf app/assets"
|
|
15
|
-
run "echo \"\\n\\n\\n\\n\\n\\n\\n\" > spec/capify_responses"
|
|
16
15
|
|
|
17
16
|
rakefile 'clean.rake' do
|
|
18
17
|
<<-TASK
|
data/script/travis
ADDED
data/spec/capify_spec.rb
CHANGED
|
@@ -66,7 +66,7 @@ describe 'capify' do
|
|
|
66
66
|
it { should be_a_file_that_exists }
|
|
67
67
|
it { should contain_content "set :stages, %w(production)" }
|
|
68
68
|
it { should contain_content "set :application, 'dummy'" }
|
|
69
|
-
it { should contain_content "set :repository, 'git
|
|
69
|
+
it { should contain_content "set :repository, '#{`git config --local remote.origin.url`.strip}'" }
|
|
70
70
|
it { should contain_content "set :scm, :git" }
|
|
71
71
|
it { should contain_content "ssh_options[:username] = 'deployer'" }
|
|
72
72
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aktion_cap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -69,6 +69,7 @@ files:
|
|
|
69
69
|
- .gitignore
|
|
70
70
|
- .rspec
|
|
71
71
|
- .rvmrc
|
|
72
|
+
- .travis.yml
|
|
72
73
|
- CHANGELOG.md
|
|
73
74
|
- Gemfile
|
|
74
75
|
- LICENSE
|
|
@@ -81,6 +82,7 @@ files:
|
|
|
81
82
|
- lib/aktion_cap/version.rb
|
|
82
83
|
- lib/dummy_rails_template.rb
|
|
83
84
|
- lib/tasks/test.rake
|
|
85
|
+
- script/travis
|
|
84
86
|
- spec/capify_spec.rb
|
|
85
87
|
- spec/fixtures/custom_capify_responses
|
|
86
88
|
- spec/fixtures/default_capify_responses
|
|
@@ -99,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
99
101
|
version: '0'
|
|
100
102
|
segments:
|
|
101
103
|
- 0
|
|
102
|
-
hash:
|
|
104
|
+
hash: 4255480165344263648
|
|
103
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
106
|
none: false
|
|
105
107
|
requirements:
|
|
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
110
|
version: '0'
|
|
109
111
|
segments:
|
|
110
112
|
- 0
|
|
111
|
-
hash:
|
|
113
|
+
hash: 4255480165344263648
|
|
112
114
|
requirements: []
|
|
113
115
|
rubyforge_project:
|
|
114
116
|
rubygems_version: 1.8.24
|