Sha256: 813e4066b1c8baa7a36abd4e0a1d6d563b9b895c352abde6ac54aeb35dabc2a0

Contents?: true

Size: 415 Bytes

Versions: 12

Compression:

Stored size: 415 Bytes

Contents

class RakeCommander::Custom::Chained < RakeCommander::Custom::Chainer
  #namespace :examples # <-- inherited
  desc 'A task you want to chain to'
  task :chained

  option_reopen :s, "It says 'something'", default: %q(I don't know what to "say"...)
  option_remove :c, :w, :method

  def task(*_args)
    puts "Called !!"
    print_options if options[:b]
    puts options[:s] if options[:s]
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rake-commander-0.4.0 examples/02_b_chained_example.rb
rake-commander-0.3.6 examples/02_b_chained_example.rb
rake-commander-0.3.5 examples/02_b_chained_example.rb
rake-commander-0.3.3 examples/02_b_chained_example.rb
rake-commander-0.2.12 examples/02_b_chained_example.rb
rake-commander-0.2.11 examples/02_b_chained_example.rb
rake-commander-0.2.10 examples/02_b_chained_example.rb
rake-commander-0.2.7 examples/02_b_chained_example.rb
rake-commander-0.2.6 examples/02_b_chained_example.rb
rake-commander-0.2.5 examples/02_b_chained_example.rb
rake-commander-0.2.4 examples/02_b_chained_example.rb
rake-commander-0.2.3 examples/02_b_chained_example.rb