Sha256: e3597ba086bfb4de255677425f0515deef6e3aade8903c041108b7a4478dfcbe
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
require 'thor' require 'wordmove/generators/movefile' require 'wordmove/deployer' module Wordmove class CLI < Thor desc "init", "Generates a brand new Movefile" def init Wordmove::Generators::Movefile.start end desc "pull", "Pulls Wordpress data from remote host to the local machine" method_option :skip_db, :aliases => "-d", :type => :boolean method_option :skip_uploads, :aliases => "-u", :type => :boolean method_option :skip_themes, :aliases => "-t", :type => :boolean method_option :skip_plugins, :aliases => "-p", :type => :boolean method_option :verbose, :aliases => "-v", :type => :boolean method_option :config, :aliases => "-c" def pull deployer = Wordmove::Deployer.new(options) deployer.pull end desc "push", "Push Wordpress data to remote host from local machine" method_option :skip_db, :aliases => "-d", :type => :boolean method_option :skip_uploads, :aliases => "-u", :type => :boolean method_option :skip_themes, :aliases => "-t", :type => :boolean method_option :skip_plugins, :aliases => "-p", :type => :boolean method_option :verbose, :aliases => "-v", :type => :boolean method_option :config, :aliases => "-c" def push deployer = Wordmove::Deployer.new(options) deployer.push end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wordmove-0.0.1 | lib/wordmove/cli.rb |