railshoster 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1 +1,10 @@
1
- # A dummy Gemfile
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem 'rspec', :group => :development
6
+
7
+ group :test do
8
+ gem 'fakefs'
9
+ gem 'mocha'
10
+ end
data/Gemfile.lock CHANGED
@@ -1,94 +1,61 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ railshoster (0.6.1)
5
+ bundler (>= 1.0.15)
6
+ capistrano
7
+ capistrano-ext
8
+ erubis
9
+ git
10
+ gli (>= 1.2.5)
11
+ json
12
+ sane
13
+
1
14
  GEM
2
15
  remote: http://rubygems.org/
3
16
  specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.7)
6
- actionpack (= 3.0.7)
7
- mail (~> 2.2.15)
8
- actionpack (3.0.7)
9
- activemodel (= 3.0.7)
10
- activesupport (= 3.0.7)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.5.0)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.14)
16
- rack-test (~> 0.5.7)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.7)
19
- activesupport (= 3.0.7)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.5.0)
22
- activerecord (3.0.7)
23
- activemodel (= 3.0.7)
24
- activesupport (= 3.0.7)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.7)
28
- activemodel (= 3.0.7)
29
- activesupport (= 3.0.7)
30
- activesupport (3.0.7)
31
- acts_as_commentable (3.0.1)
32
- arel (2.0.10)
33
- authlogic (3.0.3)
34
- activerecord (>= 3.0.7)
35
- activerecord (>= 3.0.7)
36
- builder (2.1.2)
37
- cocaine (0.2.0)
38
- erubis (2.6.6)
39
- abstract (>= 1.0.0)
40
- haml (3.1.3)
41
- i18n (0.5.0)
42
- mail (2.2.19)
43
- activesupport (>= 2.3.6)
44
- i18n (>= 0.4.0)
45
- mime-types (~> 1.16)
46
- treetop (~> 1.4.8)
47
- mime-types (1.17.2)
48
- mysql2 (0.2.7)
49
- paperclip (2.3.16)
50
- activerecord (>= 2.3.0)
51
- activesupport (>= 2.3.2)
52
- cocaine (>= 0.0.2)
53
- mime-types
54
- polyglot (0.3.3)
55
- rack (1.2.4)
56
- rack-mount (0.6.14)
57
- rack (>= 1.0.0)
58
- rack-test (0.5.7)
59
- rack (>= 1.0)
60
- rails (3.0.7)
61
- actionmailer (= 3.0.7)
62
- actionpack (= 3.0.7)
63
- activerecord (= 3.0.7)
64
- activeresource (= 3.0.7)
65
- activesupport (= 3.0.7)
66
- bundler (~> 1.0)
67
- railties (= 3.0.7)
68
- railties (3.0.7)
69
- actionpack (= 3.0.7)
70
- activesupport (= 3.0.7)
71
- rake (>= 0.8.7)
72
- thor (~> 0.14.4)
73
- rake (0.8.7)
74
- sass (3.1.10)
75
- thor (0.14.6)
76
- treetop (1.4.10)
77
- polyglot
78
- polyglot (>= 0.3.1)
79
- tzinfo (0.3.31)
80
- will_paginate (3.0.2)
17
+ capistrano (2.9.0)
18
+ highline
19
+ net-scp (>= 1.0.0)
20
+ net-sftp (>= 2.0.0)
21
+ net-ssh (>= 2.0.14)
22
+ net-ssh-gateway (>= 1.1.0)
23
+ capistrano-ext (1.2.1)
24
+ capistrano (>= 1.0.0)
25
+ diff-lcs (1.1.3)
26
+ erubis (2.7.0)
27
+ fakefs (0.4.0)
28
+ git (1.2.5)
29
+ gli (1.4.0)
30
+ highline (1.6.11)
31
+ json (1.6.5)
32
+ metaclass (0.0.1)
33
+ mocha (0.10.3)
34
+ metaclass (~> 0.0.1)
35
+ net-scp (1.0.4)
36
+ net-ssh (>= 1.99.1)
37
+ net-sftp (2.0.5)
38
+ net-ssh (>= 2.0.9)
39
+ net-ssh (2.3.0)
40
+ net-ssh-gateway (1.1.0)
41
+ net-ssh (>= 1.99.1)
42
+ os (0.9.5)
43
+ rspec (2.8.0)
44
+ rspec-core (~> 2.8.0)
45
+ rspec-expectations (~> 2.8.0)
46
+ rspec-mocks (~> 2.8.0)
47
+ rspec-core (2.8.0)
48
+ rspec-expectations (2.8.0)
49
+ diff-lcs (~> 1.1.2)
50
+ rspec-mocks (2.8.0)
51
+ sane (0.25.2)
52
+ os
81
53
 
82
54
  PLATFORMS
83
55
  ruby
84
56
 
85
57
  DEPENDENCIES
86
- acts_as_commentable (>= 3.0.1)
87
- authlogic (~> 3.0.3)
88
- haml (>= 3.1.1)
89
- mysql2 (= 0.2.7)
90
- paperclip (~> 2.3.6)
91
- rails (= 3.0.7)
92
- rake (= 0.8.7)
93
- sass (>= 3.1.1)
94
- will_paginate (>= 3.0.pre2)
58
+ fakefs
59
+ mocha
60
+ railshoster!
61
+ rspec
data/bin/railshoster CHANGED
@@ -59,6 +59,29 @@ command [:deploy] do |c|
59
59
  end
60
60
  end
61
61
 
62
+ desc "Setup your application on RailsHoster.com"
63
+ arg_name 'dir_name'
64
+ long_desc "Use this command to setup your application on RailsHoster.com after you have successfully initialized it using the 'init' command."
65
+ command ["deploy:setup"] do |c|
66
+ c.action do |global_options,options,args|
67
+ project_git_dir_name = args[0] || FileUtils.pwd
68
+ Railshoster::DeployCommand.new(project_git_dir_name).deploy_setup
69
+
70
+ puts "\nNow, where you have setup your app you should run the 'deploy:cold' command."
71
+
72
+ end
73
+ end
74
+
75
+ desc "Deploy your application the first time to RailsHoster.com"
76
+ arg_name 'dir_name'
77
+ long_desc "Use this command to deploy your application on RailsHoster.com the first time."
78
+ command ["deploy:cold"] do |c|
79
+ c.action do |global_options,options,args|
80
+ project_git_dir_name = args[0] || FileUtils.pwd
81
+ Railshoster::DeployCommand.new(project_git_dir_name).deploy_cold
82
+ end
83
+ end
84
+
62
85
  desc "Show the default RailsHoster.com URL for your app."
63
86
  long_desc "Whenever you ask what the initial RailsHoster.com URL of your app was just invoke this command. It will tell you."
64
87
  command [:appurl] do |c|
@@ -12,5 +12,17 @@ module Railshoster
12
12
  system("cap deploy")
13
13
  end
14
14
  end
15
+
16
+ def deploy_setup
17
+ if_project_already_initialized do
18
+ system("cap deploy:setup")
19
+ end
20
+ end
21
+
22
+ def deploy_cold
23
+ if_project_already_initialized do
24
+ system("cap deploy:cold")
25
+ end
26
+ end
15
27
  end
16
28
  end
@@ -1,3 +1,3 @@
1
1
  module Railshoster
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railshoster
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julian Fischer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-17 00:00:00 Z
18
+ date: 2012-01-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler