shelly 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module Shelly
5
5
  class Apps < Thor
6
6
  namespace :apps
7
7
 
8
- desc "add", "Add new application to Shelly Cloud"
8
+ desc "add", "Adds new application to Shelly Cloud"
9
9
  def add
10
10
  @app = Shelly::App.new
11
11
  @app.purpose = ask_for_purpose
@@ -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 'account:register'
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
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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('account:register')
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shelly Cloud team