Sha256: 5bb65c62ff9fd3b44066277507a75c5cf6d3e92965c720b560f5f785728d2316

Contents?: true

Size: 928 Bytes

Versions: 71

Compression:

Stored size: 928 Bytes

Contents

module Octopress
  module Ink
    module Commands
      class Copy
        def self.process_command(p)
          p.command(:copy) do |c|
            c.syntax "copy <PLUGIN> [options]"
            c.description "Copy plugin assets to _plugins/PLUGIN/."
            c.option "all", "--all", "Copy all plugin assets."
            c.option "force", "--force", "Overwrite files."
            c.option "path", "--path PATH", "Copy plugin assets to an alternate path."
            CommandHelpers.add_asset_options(c, 'Copy')

            c.action do |args, options|
              if args.empty?
                puts "Error: Please pass a plugin slug to install assets from that plugin."
                Octopress::Ink.list_plugins
              else
                name = args[0]
                Octopress::Ink.copy_plugin_assets(name, options)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
octopress-ink-1.0.0.rc.51 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.50 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.49 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.48 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.47 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.46 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.45 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.44 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.43 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.42 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.41 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.40 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.39 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.38 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.37 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.36 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.35 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.34 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.33 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.32 lib/octopress-ink/commands/copy.rb