remoting 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/generators/remoting/install_generator.rb +11 -5
- data/remoting.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
@@ -1,15 +1,21 @@
|
|
1
1
|
module Remoting
|
2
2
|
module Generators
|
3
3
|
class InstallGenerator < Rails::Generators::Base
|
4
|
+
class_option :host, :alias => "h", :default => "host"
|
5
|
+
class_option :user, :alias => "u", :default => "ror"
|
6
|
+
|
4
7
|
def create_remote_yml
|
5
|
-
|
8
|
+
appname = Rails.application.class.to_s.split("::").first.underscore
|
9
|
+
user = options[:host]
|
10
|
+
host = options[:host]
|
6
11
|
stub = <<-STUB
|
7
12
|
remote:
|
8
|
-
login: user
|
9
|
-
dest: /var
|
10
|
-
repo: git
|
13
|
+
login: #{user}@#{host}
|
14
|
+
dest: /var/#{user}/#{appname}
|
15
|
+
repo: ssh://#{user}@#{host}/var/ror/git/#{appname}.git
|
11
16
|
ruby: 1.9.3
|
12
|
-
|
17
|
+
tmp: /tmp
|
18
|
+
app: #{appname}
|
13
19
|
STUB
|
14
20
|
|
15
21
|
create_file "config/remote.yml", stub
|
data/remoting.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remoting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash: -
|
117
|
+
hash: -4076573650210202870
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|