shelly 0.0.5 → 0.0.6
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/lib/shelly/cli/apps.rb +1 -1
- data/lib/shelly/cli/main.rb +6 -1
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/main_spec.rb +11 -1
- metadata +3 -3
data/lib/shelly/cli/apps.rb
CHANGED
data/lib/shelly/cli/main.rb
CHANGED
@@ -18,7 +18,12 @@ module Shelly
|
|
18
18
|
|
19
19
|
desc "register", "Registers new user account on Shelly Cloud"
|
20
20
|
def register
|
21
|
-
invoke
|
21
|
+
invoke "account:register"
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "add", "Adds new application to Shelly Cloud"
|
25
|
+
def add
|
26
|
+
invoke "apps:add"
|
22
27
|
end
|
23
28
|
end
|
24
29
|
end
|
data/lib/shelly/version.rb
CHANGED
@@ -15,16 +15,26 @@ describe Shelly::CLI::Main do
|
|
15
15
|
|
16
16
|
describe "#register" do
|
17
17
|
it "should invoke account:register command" do
|
18
|
-
@main.should_receive(:invoke).with(
|
18
|
+
@main.should_receive(:invoke).with("account:register")
|
19
19
|
@main.register
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
describe "#add" do
|
24
|
+
it "should invoke apps:add command" do
|
25
|
+
@main.should_receive(:invoke).with("apps:add")
|
26
|
+
@main.add
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
|
23
32
|
describe "#help" do
|
24
33
|
it "should display available commands" do
|
25
34
|
expected = <<-OUT
|
26
35
|
Tasks:
|
27
36
|
shelly account <command> # Manages your account
|
37
|
+
shelly add # Adds new application to Shelly Cloud
|
28
38
|
shelly apps <command> # Manages your applications
|
29
39
|
shelly help [TASK] # Describe available tasks or one specific task
|
30
40
|
shelly register # Registers new user account on Shelly Cloud
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shelly Cloud team
|