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 CHANGED
@@ -1 +1 @@
1
- 0.3.4
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@server
9
- dest: /var/ror/myapp
10
- repo: git@gitserver:myapp
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
- gemset: myapp
17
+ tmp: /tmp
18
+ app: #{appname}
13
19
  STUB
14
20
 
15
21
  create_file "config/remote.yml", stub
data/remoting.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "remoting"
8
- s.version = "0.3.4"
8
+ s.version = "0.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
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
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: -2116580318910913265
117
+ hash: -4076573650210202870
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements: