class Photish::Rake::Task

Attributes

options[RW]

Public Class Methods

new(task_name = "photish", desc = "Run photish") { |self| ... } click to toggle source
# File lib/photish/rake/task.rb, line 10
def initialize(task_name = "photish", desc = "Run photish")
  @task_name = task_name
  @desc = desc
  yield self if block_given?
  define_task
end

Public Instance Methods

options=(opts) click to toggle source
# File lib/photish/rake/task.rb, line 17
def options=(opts)
  @options = String === opts ? opts.split(' ') : opts
end

Private Instance Methods

define_task() click to toggle source
# File lib/photish/rake/task.rb, line 23
def define_task
  desc @desc
  task @task_name do
    Photish::CLI::Interface.start(options)
  end
end