capistrano_deploy_generator 0.0.1 → 0.0.2

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: f5296a9e851a433d01a7e542984686eb8db26911
4
- data.tar.gz: 302833b411128ef298cf610a0aac7dab1327f5a0
3
+ metadata.gz: afaad7a281c9ebed7220da29800eacc745cb681d
4
+ data.tar.gz: c7e01713ae3158be0c02f4bc600769b9282d3518
5
5
  SHA512:
6
- metadata.gz: c2ab914b531755ec048c1850e4e73c0e030b575ce2f3e40904758fa7947d24ed1401fcdd0f00db1740a016b11a934144958c2eb4dea90694f478be72169801b2
7
- data.tar.gz: d5fb56e26d538f2e5692c7c33cb9b0a763a00572828e4b57b11dbb0d641e6b02c866e526afba8468b747cce0313930a2bca803d0c5f978665a5059e1add6c7d1
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 = "http://dmytro.github.com"
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 = source_paths.first
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 "#{source_paths.first}/#{@scm}.tpl" -%>
61
+ <%= File.read "#{CapistranoDeployGenerator.source_root}/#{@scm}.tpl" -%>
62
62
  <% if @scm =~ /git/ -%>
63
63
  set :repository, "<%= git_remote %>"
64
64
  <% end -%>
@@ -1,4 +1,4 @@
1
1
  require 'rails/generators'
2
2
  class CapistranoDeployGenerator < Rails::Generators::NamedBase
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  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.1
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-05-28 00:00:00.000000000 Z
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: http://dmytro.github.com
94
+ homepage: https://github.com/dmytro/capistrano_deploy_generator
95
95
  licenses:
96
96
  - MIT
97
97
  metadata: {}