railshoster 0.1.1 → 0.2.0
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/CHANGELOG.textile +7 -1
- data/ROADMAP.textile +6 -2
- data/bin/railshoster +16 -3
- data/lib/railshoster/version.rb +1 -1
- metadata +5 -5
data/CHANGELOG.textile
CHANGED
|
@@ -34,4 +34,10 @@ h3. 0.1.0
|
|
|
34
34
|
|
|
35
35
|
h3. 0.1.1
|
|
36
36
|
|
|
37
|
-
* Fixed deploy_to path in deploy.rb
|
|
37
|
+
* Fixed deploy_to path in deploy.rb
|
|
38
|
+
|
|
39
|
+
h3. 0.2.0
|
|
40
|
+
|
|
41
|
+
* Added flag for init command to pass app credentials via json hash such as:
|
|
42
|
+
|
|
43
|
+
bc. railshoster init -json '{"t":"h","u":"user999999999","a":"rails1","h":"zeta.railshoster.de","p":"mypass"}' .
|
data/ROADMAP.textile
CHANGED
|
@@ -5,12 +5,16 @@ h2. 0.0.1
|
|
|
5
5
|
|
|
6
6
|
h2. 1.0.0
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
* To be specified
|
|
9
|
+
|
|
10
|
+
h3. Product Backlog
|
|
9
11
|
|
|
10
12
|
* RailsHoster VPS Deployments
|
|
13
|
+
* Mailer-Configuration
|
|
11
14
|
|
|
12
15
|
h3. General TODOs
|
|
13
16
|
|
|
14
17
|
* Railshoster::InitCommand - Check wether it is possible to replace "system" call with a pure ruby version possibly by using the capistrano gem directly via ruby.
|
|
15
18
|
* Test bin/railshoster
|
|
16
|
-
* railshoster deploy should check capistrano's exit status and respond to that in case of a failure.
|
|
19
|
+
* railshoster deploy should check capistrano's exit status and respond to that in case of a failure.
|
|
20
|
+
* Database.yml issue - mysql or mysql2 - Problem.
|
data/bin/railshoster
CHANGED
|
@@ -23,19 +23,32 @@ arg_name 'dir_name'
|
|
|
23
23
|
long_desc 'This command helps to deploy a Ruby on Rails application to your RailsHoster account using the application token you have received after signing up.'
|
|
24
24
|
command [:init] do |c|
|
|
25
25
|
|
|
26
|
-
c.desc "Use the RailsHoster application_token pass your account credentials."
|
|
26
|
+
c.desc "Use the RailsHoster application_token to pass your account credentials."
|
|
27
27
|
c.flag [:a, :apptoken]
|
|
28
|
+
|
|
29
|
+
c.desc "Use a json string to pass your account credentials."
|
|
30
|
+
c.flag [:j, :json]
|
|
28
31
|
|
|
29
32
|
c.action do |global_options,options,args|
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
unless (options[:a] || options[:j]) then
|
|
35
|
+
raise "Option '-a' or '-j' is required for the 'init' command.\n" +
|
|
36
|
+
"How else should I know where you want to deploy to?"
|
|
37
|
+
end
|
|
32
38
|
|
|
33
39
|
cwd = FileUtils.pwd
|
|
34
40
|
ask_for_project_dir(cwd) if args.empty?
|
|
35
41
|
project_git_dir_name = args[0] || cwd
|
|
36
42
|
|
|
37
43
|
init_command = Railshoster::InitCommand.new(project_git_dir_name)
|
|
38
|
-
|
|
44
|
+
|
|
45
|
+
if options[:a] then
|
|
46
|
+
init_command.run_by_application_token(options[:a])
|
|
47
|
+
elsif options[:j] then
|
|
48
|
+
init_command.run_by_application_hash(options[:j])
|
|
49
|
+
else
|
|
50
|
+
raise "Illegal State."
|
|
51
|
+
end
|
|
39
52
|
end
|
|
40
53
|
end
|
|
41
54
|
|
data/lib/railshoster/version.rb
CHANGED
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:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
8
|
+
- 2
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.2.0
|
|
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: 2011-11-
|
|
18
|
+
date: 2011-11-07 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: capistrano
|