Method: BooticCli::Commands::Themes#clone
- Defined in:
- lib/bootic_cli/commands/themes.rb
#clone(dir = nil) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/bootic_cli/commands/themes.rb', line 19 def clone(dir = nil) logged_in_action do local_theme, remote_theme = theme_selector.setup_theme_pair(['shop'], dir, ['public'], ['dev']) if File.exist?(local_theme.path) prompt.say "Directory already exists! (#{local_theme.path})", :red else prompt.say "Cloning theme files into #{local_theme.path}" workflows.pull(local_theme, remote_theme) local_theme.write_subdomain end end end |