porter 1.0.1 → 1.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.
- data/lib/generators/porter/porter_generator.rb +6 -6
- data/lib/porter/version.rb +1 -1
- metadata +5 -7
@@ -1,19 +1,19 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
|
3
3
|
class PorterGenerator < Rails::Generators::Base
|
4
|
-
|
4
|
+
|
5
5
|
attr_accessor :app, :domain
|
6
|
-
|
6
|
+
|
7
7
|
def self.source_root
|
8
8
|
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
def create_config_file
|
12
|
-
@app =
|
12
|
+
@app = Rails.root.to_s.split('/').last
|
13
13
|
@domain = @app + (@app.include?('.') ? '' : '.com')
|
14
|
-
|
14
|
+
|
15
15
|
template 'porter_config.yml', 'config/porter_config.yml'
|
16
16
|
readme 'INSTALL'
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
end
|
data/lib/porter/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: porter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kenny Johnston
|
@@ -16,8 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
20
|
-
default_executable:
|
19
|
+
date: 2011-08-18 00:00:00 Z
|
21
20
|
dependencies: []
|
22
21
|
|
23
22
|
description: Capistrano and Rake tasks for cloning production and/or staging databases and assets to development.
|
@@ -43,7 +42,6 @@ files:
|
|
43
42
|
- lib/porter/version.rb
|
44
43
|
- lib/tasks/porter.rake
|
45
44
|
- porter.gemspec
|
46
|
-
has_rdoc: true
|
47
45
|
homepage: http://github.com/kjohnston/porter
|
48
46
|
licenses: []
|
49
47
|
|
@@ -73,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
71
|
requirements: []
|
74
72
|
|
75
73
|
rubyforge_project: porter
|
76
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.8.6
|
77
75
|
signing_key:
|
78
76
|
specification_version: 3
|
79
77
|
summary: Capistrano and Rake tasks for cloning production and/or staging databases and assets to development.
|