shopify_theme 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shopify_theme/cli.rb +3 -3
- data/lib/shopify_theme/version.rb +1 -1
- metadata +4 -4
data/lib/shopify_theme/cli.rb
CHANGED
@@ -2,7 +2,7 @@ require 'thor'
|
|
2
2
|
require 'yaml'
|
3
3
|
require 'abbrev'
|
4
4
|
require 'base64'
|
5
|
-
require '
|
5
|
+
require 'fileutils'
|
6
6
|
require 'json'
|
7
7
|
require 'fssm'
|
8
8
|
|
@@ -18,7 +18,7 @@ module ShopifyTheme
|
|
18
18
|
end
|
19
19
|
|
20
20
|
desc "configure API_KEY PASSWORD STORE", "generate a config file for the store to connect to"
|
21
|
-
def
|
21
|
+
def configure(api_key=nil, password=nil, store=nil)
|
22
22
|
config = {:api_key => api_key, :password => password, :store => store}
|
23
23
|
create_file('config.yml', config.to_yaml)
|
24
24
|
end
|
@@ -86,7 +86,7 @@ module ShopifyTheme
|
|
86
86
|
content = Base64.decode64(asset['attachment'])
|
87
87
|
end
|
88
88
|
|
89
|
-
|
89
|
+
FileUtils.mkdir_p(File.dirname(key))
|
90
90
|
File.open(key, "w") {|f| f.write content} if content
|
91
91
|
end
|
92
92
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Duff
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-02 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|