bootic_cli 0.2.0.pre4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01b310353094a4af7a0b179b02660c020fb98480
4
- data.tar.gz: 2583f1d57a24e858ef0ba028f8c4696cf7496ade
3
+ metadata.gz: bd50a52e936001ba2e5617b9348fc09d02f06c32
4
+ data.tar.gz: 4c1627e9cefa13c331c26d4c0be4d313732ac656
5
5
  SHA512:
6
- metadata.gz: ff09b1ba8c214698dc2a1d4ff033b2de5d72c9163aee1c0aea2c2a1f6b361dd1d17c8df18da43af385281c52bd4a1fb22310534ebce6d75fc3f061495b8716ba
7
- data.tar.gz: ed01f33cbfc925e52309306b6ec57a61944171f1a554d8f7792f7536a25044fe4f3611a0cb28cc43004d949beddd4df5f1ca4bf210dc787e6adc2093327f5944
6
+ metadata.gz: 8abeb01f0803e325263d202299f320983e1ee06f573595aba050de7707976430515d69f96f34e9585cf0893da687e1f37a6bcf8e489da5c39720f276c0e05c8d
7
+ data.tar.gz: 71385f3e902cfe3ececa8bf88ff6dee593288c0eae8c299ee9330e41ddaadd618d291e2e52e237cc634f1fb2d9b0459c92cd284400077a754f20195c544baa67
@@ -14,6 +14,7 @@ module BooticCli
14
14
 
15
15
  desc 'setup', 'Setup OAuth2 application credentials'
16
16
  def setup
17
+ say "Please create an OAuth2 app and get its credentials at https://auth.bootic.net/dev/apps or the relevant auth app for your environment", :yellow
17
18
  if options[:environment] != DEFAULT_ENV
18
19
  auth_host = ask("Enter auth endpoint host (#{BooticClient::AUTH_HOST}):").chomp
19
20
  api_root = ask("Enter API root (#{BooticClient::API_ROOT}):").chomp
@@ -31,8 +32,7 @@ module BooticCli
31
32
  desc 'login', 'Login to your Bootic account'
32
33
  def login(scope = 'admin')
33
34
  if !session.setup?
34
- say "App not configured for #{options[:environment]} environment. Running setup first. You only need to do this once."
35
- say "Please create an OAuth2 app and get its credentials at https://auth.bootic.net/dev/apps or the relevant auth app for your environment"
35
+ say "App not configured for #{options[:environment]} environment. Running setup first. You only need to do this once.", :red
36
36
  invoke :setup, []
37
37
  end
38
38
 
@@ -25,7 +25,7 @@ module BooticCli
25
25
  end
26
26
  end
27
27
 
28
- desc 'push [shop] [dir]', 'Push all local theme files in [dir] to remote shop [shop]'
28
+ desc 'push', 'Push all local theme files in current dir to remote shop'
29
29
  option :public, banner: '<true|false>', type: :boolean, default: false, aliases: '-p'
30
30
  option :destroy, banner: '<true|false>', type: :boolean, default: true
31
31
  def push(subdomain = nil, dir = '.')
@@ -35,7 +35,7 @@ module BooticCli
35
35
  end
36
36
  end
37
37
 
38
- desc 'sync [shop] [dir]', 'Sync local theme copy in [dir] with remote [shop]'
38
+ desc 'sync', 'Sync local theme copy in local dir with remote shop'
39
39
  option :public, banner: '<true|false>', type: :boolean, default: false, aliases: '-p'
40
40
  def sync(subdomain = nil, dir = '.')
41
41
  logged_in_action do
@@ -44,7 +44,7 @@ module BooticCli
44
44
  end
45
45
  end
46
46
 
47
- desc 'compare [shop] [dir]', 'Show differences between local and remote copies'
47
+ desc 'compare', 'Show differences between local and remote copies'
48
48
  option :public, banner: '<true|false>', type: :boolean, default: false, aliases: '-p'
49
49
  def compare(subdomain = nil, dir = '.')
50
50
  logged_in_action do
@@ -53,7 +53,7 @@ module BooticCli
53
53
  end
54
54
  end
55
55
 
56
- desc 'watch [shop] [dir]', 'Watch theme directory at [dir] and create/update/delete the one in [shop] when changed'
56
+ desc 'watch', 'Watch theme directory at ./ and create/update/delete the one in remote shop when changed'
57
57
  option :public, banner: '<true|false>', type: :boolean, default: false, aliases: '-p'
58
58
  def watch(subdomain = nil, dir = '.')
59
59
  logged_in_action do
@@ -62,7 +62,7 @@ module BooticCli
62
62
  end
63
63
  end
64
64
 
65
- desc 'publish [shop] [dir]', 'Publish dev files to public theme'
65
+ desc 'publish', 'Publish local files to remote public theme'
66
66
  def publish(subdomain = nil, dir = '.')
67
67
  logged_in_action do
68
68
  local_theme, remote_theme = theme_selector.select_theme_pair(subdomain, dir, false)
@@ -70,7 +70,7 @@ module BooticCli
70
70
  end
71
71
  end
72
72
 
73
- desc 'open [shop] [dir]', 'Open theme in a browser'
73
+ desc 'open', 'Open theme preview URL in a browser'
74
74
  option :public, banner: '<true|false>', type: :boolean, default: false, aliases: '-p'
75
75
  def open(subdomain = nil, dir = '.')
76
76
  logged_in_action do
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = "0.2.0.pre4"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootic_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -194,9 +194,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ">"
197
+ - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: 1.3.1
199
+ version: '0'
200
200
  requirements: []
201
201
  rubyforge_project:
202
202
  rubygems_version: 2.6.13