Sha256: 5e4c028834174561ceff038d64b2fd8e2e1075d1031f836811644ed738cede3d

Contents?: true

Size: 1.34 KB

Versions: 25

Compression:

Stored size: 1.34 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 WP 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", "Pushes WP data from local machine to remote host"
    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

25 entries across 25 versions & 2 rubygems

Version Path
wordmove-0.0.8 lib/wordmove/cli.rb
wordmove-0.0.7 lib/wordmove/cli.rb
wordmove-0.0.6 lib/wordmove/cli.rb
wordmove-sshbump-0.2.2 lib/wordmove/cli.rb
wordmove-sshbump-0.2.1 lib/wordmove/cli.rb
wordmove-sshbump-0.2.0 lib/wordmove/cli.rb
wordmove-sshbump-0.1.9 lib/wordmove/cli.rb
wordmove-sshbump-0.1.8 lib/wordmove/cli.rb
wordmove-sshbump-0.1.7 lib/wordmove/cli.rb
wordmove-sshbump-0.1.6 lib/wordmove/cli.rb
wordmove-sshbump-0.1.5 lib/wordmove/cli.rb
wordmove-sshbump-0.1.4 lib/wordmove/cli.rb
wordmove-sshbump-0.1.3 lib/wordmove/cli.rb
wordmove-sshbump-0.1.2 lib/wordmove/cli.rb
wordmove-sshbump-0.1.1 lib/wordmove/cli.rb
wordmove-sshbump-0.1.0 lib/wordmove/cli.rb
wordmove-sshbump-0.0.10 lib/wordmove/cli.rb
wordmove-sshbump-0.0.9 lib/wordmove/cli.rb
wordmove-sshbump-0.0.8 lib/wordmove/cli.rb
wordmove-sshbump-0.0.7 lib/wordmove/cli.rb