Class: Shopifydev::Generators::Shop
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Shopifydev::Generators::Shop
- Includes:
- Thor::Actions
- Defined in:
- lib/shopifydev/generators/shop.rb
Instance Method Summary collapse
Instance Method Details
#download_template ⇒ Object
23 24 25 |
# File 'lib/shopifydev/generators/shop.rb', line 23 def download_template say "TODO: automate downloading template from test shop" end |
#setup ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/shopifydev/generators/shop.rb', line 12 def setup create_file "#{name}/TODO" copy_file "Gemfile", "#{name}/Gemfile" copy_file "rvmrc", "#{name}/.rvmrc" copy_file "gitignore", "#{name}/.gitignore" copy_file "shopify-tmbundle", "#{name}/.shopify-tmbundle" system "git init" system "git add --all" system 'git commit -m "initial setup"' end |