bushido 0.0.1 → 0.0.2
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/bin/bushido +2 -1
- data/bushido.gemspec +1 -1
- data/lib/bushido/app.rb +6 -0
- data/lib/bushido/version.rb +1 -1
- metadata +3 -3
data/bin/bushido
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
-
require '
|
|
2
|
+
require 'bushido'
|
|
3
3
|
|
|
4
4
|
options = {}
|
|
5
5
|
|
|
@@ -43,6 +43,7 @@ if command
|
|
|
43
43
|
when :stop then Bushido::App.stop(ARGV[1])
|
|
44
44
|
when :restart then Bushido::App.restart(ARGV[1])
|
|
45
45
|
when :update then Bushido::App.update(ARGV[1])
|
|
46
|
+
when :open then Bushido::App.open(ARGV[1])
|
|
46
47
|
end
|
|
47
48
|
else
|
|
48
49
|
puts "usage: bushido <command>\n\nSee bushido -h for more detailed instructions"
|
data/bushido.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
9
|
s.authors = ["Sean Grove"]
|
|
10
10
|
s.email = ["s@bushi.do"]
|
|
11
|
-
s.homepage = ""
|
|
11
|
+
s.homepage = "http://trapm.com"
|
|
12
12
|
s.summary = %q{Command-lin interface for bushi.do}
|
|
13
13
|
s.description = %q{A command line tool to do everything with bushido, from signing up and deploying apps, to claiming, restarting, and updating existing apps}
|
|
14
14
|
|
data/lib/bushido/app.rb
CHANGED
|
@@ -15,6 +15,12 @@ module Bushido
|
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
def open(name)
|
|
19
|
+
location = "http://#{name}.#{Bushido::Temple.gsub('http://','')}"
|
|
20
|
+
puts "Opening \"#{location}\" ..."
|
|
21
|
+
exec "open #{location}"
|
|
22
|
+
end
|
|
23
|
+
|
|
18
24
|
def get(name, params={})
|
|
19
25
|
url = "#{Temple}/apps/#{name}"
|
|
20
26
|
Bushido::Command.get_command(url, params)
|
data/lib/bushido/version.rb
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Sean Grove
|
|
@@ -39,7 +39,7 @@ files:
|
|
|
39
39
|
- lib/bushido/utils.rb
|
|
40
40
|
- lib/bushido/version.rb
|
|
41
41
|
has_rdoc: true
|
|
42
|
-
homepage:
|
|
42
|
+
homepage: http://trapm.com
|
|
43
43
|
licenses: []
|
|
44
44
|
|
|
45
45
|
post_install_message:
|