cloudbees 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,8 +12,28 @@ Installation via the gem is easy:
12
12
 
13
13
  > gem install cloudbees
14
14
 
15
+
16
+
15
17
  Once installed, you use it via:
16
18
 
17
19
  > cloudbees
18
20
 
19
- It will tell you what to do (run it in your rack/rails app directory)
21
+ Access your web console at https://run.cloudbees.com - you can find your app ids and db ids etc from there, create databases and more.
22
+ Usage:
23
+ cloudbees deploy [account_name/application_name]
24
+ - this will package the app in the current directory,
25
+ and deploy it with production environment settings.
26
+ Add on "a description" (with quotes) at the end optionally for tagging.
27
+ cloudbees tail
28
+ - open a live tail to your app as it is running
29
+ cloudbees restart
30
+ - restart the app, if you need to.
31
+ cloudbees delete
32
+ - delete the app
33
+ cloudbees help
34
+ - show help on the cloudbees SDK and the 'bees' command
35
+
36
+
37
+
38
+ Combines the most excellent https://github.com/nicksieger/warbler with the CloudBees SDK for your convenience.
39
+ JRuby Rack is used - which is a lightweight adapter to the servlet api for all rack based apps.
@@ -103,7 +103,7 @@ def deploy
103
103
  if ARGV.size == 3 then
104
104
  `bees app:deploy -a #{app_id} -m "#{ARGV[2]}" #{wars[0]}`
105
105
  else
106
- `bees app:deploy -a #{app_id} #{wars[0]}"`
106
+ `bees app:deploy -a #{app_id} #{wars[0]}`
107
107
  end
108
108
  end
109
109
 
@@ -1,5 +1,5 @@
1
1
  module NAME
2
2
 
3
- VERSION = "0.1.6".freeze
3
+ VERSION = "0.1.7".freeze
4
4
 
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudbees
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Neale
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-04 00:00:00 +11:00
18
+ date: 2011-02-08 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -58,7 +58,6 @@ extra_rdoc_files:
58
58
  - LICENSE
59
59
  files:
60
60
  - bin/cloudbees
61
- - bin/cloudbees~
62
61
  - lib/cloudbees/version.rb
63
62
  - lib/cloudbees/version.rb~
64
63
  - lib/cloudbees.rb
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- if not has_program?('beex') then
4
- abort('Please install the CloudBees SDK from here: www.cloudbees.com/run.cb')
5
- end
6
-
7
- task = ARGV[0]
8
- if task == "deploy" then
9
- puts "packaging the application...."
10
- `warble`
11
- puts "Now deploying..."
12
- `bees app:deploy -a michaelneale/opiu miko.war`
13
- else
14
- puts "Usage: cloudbees deploy"
15
- end
16
-
17
-
18
-
19
- def has_program?(program)
20
- ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory|
21
- File.executable?(File.join(directory, program.to_s))
22
- end
23
- end