capistrano_deploy_generator 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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afaad7a281c9ebed7220da29800eacc745cb681d
|
|
4
|
+
data.tar.gz: c7e01713ae3158be0c02f4bc600769b9282d3518
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcb1461996e8b4f59d8a1f40dff977ee5a7801284a627a1fdc8f11db54e488e7fe8d0ee2a2662ca022add657067e49b3d897fdab80e1a5fc92dd80fa09aa9eff
|
|
7
|
+
data.tar.gz: d3b894f267d6b98e7b44a9639ee408a9b950898f71ad507c613cb3d7c2c98e21222b8c780472a9195d673f214e2e9af8c724b02a05a48b4f26b5c6256704e8ab
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["dmytro.kovalov@gmail.com"]
|
|
11
11
|
spec.description = %q{Create config/deploy.rb file and config/deploy directory subtree with required componenets for capistrano. Install support Git repositories as submodules.}
|
|
12
12
|
spec.summary = %q{Generate deployment configuration to be used with Capistrano.}
|
|
13
|
-
spec.homepage = "
|
|
13
|
+
spec.homepage = "https://github.com/dmytro/capistrano_deploy_generator"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
|
@@ -6,6 +6,7 @@ require_relative "lib/core_extensions"
|
|
|
6
6
|
class CapistranoDeployGenerator < Rails::Generators::NamedBase
|
|
7
7
|
source_root File.expand_path('../templates', __FILE__)
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
def runner
|
|
10
11
|
case file_name.to_sym
|
|
11
12
|
when :capify then capify
|
|
@@ -48,7 +49,7 @@ class CapistranoDeployGenerator < Rails::Generators::NamedBase
|
|
|
48
49
|
##
|
|
49
50
|
# Create deploy rb file
|
|
50
51
|
def create_deploy
|
|
51
|
-
@@tpl =
|
|
52
|
+
@@tpl = CapistranoDeployGenerator.source_root
|
|
52
53
|
empty_directory "config/deploy"
|
|
53
54
|
|
|
54
55
|
say <<-EOF
|
|
@@ -58,7 +58,7 @@ set :default_stage, '<%= x[:default] %>'
|
|
|
58
58
|
|
|
59
59
|
}-%>
|
|
60
60
|
<% @scm = scm -%>
|
|
61
|
-
<%= File.read "#{
|
|
61
|
+
<%= File.read "#{CapistranoDeployGenerator.source_root}/#{@scm}.tpl" -%>
|
|
62
62
|
<% if @scm =~ /git/ -%>
|
|
63
63
|
set :repository, "<%= git_remote %>"
|
|
64
64
|
<% end -%>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano_deploy_generator
|
|
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
|
- Dmytro Kovalov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: highline
|
|
@@ -91,7 +91,7 @@ files:
|
|
|
91
91
|
- lib/generators/capistrano_deploy/templates/passthrough.tpl
|
|
92
92
|
- lib/generators/capistrano_deploy/templates/staging.rb.erb
|
|
93
93
|
- lib/generators/capistrano_deploy/version.rb
|
|
94
|
-
homepage:
|
|
94
|
+
homepage: https://github.com/dmytro/capistrano_deploy_generator
|
|
95
95
|
licenses:
|
|
96
96
|
- MIT
|
|
97
97
|
metadata: {}
|