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.2.1 lib/octopress-ink/commands/copy.rb
octopress-ink-1.2.0 lib/octopress-ink/commands/copy.rb
octopress-ink-1.1.4 lib/octopress-ink/commands/copy.rb
octopress-ink-1.1.2 lib/octopress-ink/commands/copy.rb
octopress-ink-1.1.1 lib/octopress-ink/commands/copy.rb
octopress-ink-1.1.0 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.64 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.63 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.62 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.61 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.60 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.59 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.58 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.57 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.56 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.55 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.54 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.53 lib/octopress-ink/commands/copy.rb
octopress-ink-1.0.0.rc.52 lib/octopress-ink/commands/copy.rb