Sha256: 3d4879f253293a7019984b170e3147daab2adf4357550604be0eee4a1c640482

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

require 'pallets'

class Aliases < Pallets::Workflow
  task 'StartSmtpServer'
  task 'SendEmail', as: 'SayHello', depends_on: 'StartSmtpServer'
  task 'SendEmail', as: 'SayGoodbye', depends_on: 'StartSmtpServer'
  task 'StopSmtpServer' => ['SayHello', 'SayGoodbye']
end

class StartSmtpServer < Pallets::Task
  def run
    puts "Starting SMTP server..."
  end
end

class SendEmail < Pallets::Task
  def run
    puts "* sending e-mail"
  end
end

class StopSmtpServer < Pallets::Task
  def run
    puts "Stopped SMTP server"
  end
end

Aliases.new.run

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pallets-0.11.0 examples/aliases.rb
pallets-0.10.0 examples/aliases.rb
pallets-0.9.0 examples/aliases.rb
pallets-0.8.0 examples/aliases.rb
pallets-0.7.0 examples/aliases.rb
pallets-0.6.0 examples/aliases.rb