Sha256: 9d490046ceeb311abd54a537bb73605d95fd0ac9a1e8ed65cc2cc92e64e7be50

Contents?: true

Size: 675 Bytes

Versions: 20

Compression:

Stored size: 675 Bytes

Contents

class Sequence < Screwcap::Base

  # ====A *Sequence* will run a set of tasks in order.
  #
  #   task_for :do_this, :server => :myserver
  #     ...
  #   end
  #
  #   task_for :do_that, :server => :myserver
  #     ...
  #   end
  #
  #   task_for :do_the_other_thing, :server => :myserver
  #     ...
  #   end
  #
  #   sequence :do_them_all, :tasks => [:do_this, :do_that, :do_the_other_thing]
  #
  # ====Sequences can be called just like tasks.
  # ====Options
  # * :tasks - the list of tasks to run, as an array of symbols.
  def initialize(opts = {})
    super
    self.__options = opts
    self.__name = opts[:name]
    self.__task_names = opts[:tasks]
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
screwcap-0.8.3 lib/screwcap/sequence.rb
screwcap-0.8.2 lib/screwcap/sequence.rb
screwcap-0.8.1 lib/screwcap/sequence.rb
screwcap-0.8 lib/screwcap/sequence.rb
screwcap-0.7.4 lib/screwcap/sequence.rb
screwcap-0.7.3 lib/screwcap/sequence.rb
screwcap-0.7.2 lib/screwcap/sequence.rb
screwcap-0.7.1 lib/screwcap/sequence.rb
screwcap-0.7 lib/screwcap/sequence.rb
screwcap-0.6.3 lib/screwcap/sequence.rb
screwcap-0.6.2 lib/screwcap/sequence.rb
screwcap-0.6.1 lib/screwcap/sequence.rb
screwcap-0.6 lib/screwcap/sequence.rb
screwcap-0.6.pre6 lib/screwcap/sequence.rb
screwcap-0.6.pre5 lib/screwcap/sequence.rb
screwcap-0.6.pre4 lib/screwcap/sequence.rb
screwcap-0.6.pre3 lib/screwcap/sequence.rb
screwcap-0.6.pre2 lib/screwcap/sequence.rb
screwcap-0.6.pre lib/screwcap/sequence.rb
screwcap-0.5 lib/screwcap/sequence.rb