Sha256: 9294d97cc665b2578979b20821f0858bd18cd3779767d3dfb7ec59f642b75a8e

Contents?: true

Size: 568 Bytes

Versions: 48

Compression:

Stored size: 568 Bytes

Contents

module Bake
  module Blocks

    class Sleep

      def initialize(config)
        @echo = (config.echo != "off")
        @time = config.name.to_f
      end

      def run
        puts "Sleeping #{@time}s" if @echo
        sleep @time
        return true
      end

      def execute
        return run()
      end

      def startupStep
        return run()
      end

      def exitStep
        return run()
      end

      def cleanStep
        return run()
      end

      def clean
        # nothing to do here
        return true
      end

    end

  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
bake-toolkit-2.62.0 lib/blocks/sleep.rb
bake-toolkit-2.61.0 lib/blocks/sleep.rb
bake-toolkit-2.60.2 lib/blocks/sleep.rb
bake-toolkit-2.60.0 lib/blocks/sleep.rb
bake-toolkit-2.59.0 lib/blocks/sleep.rb
bake-toolkit-2.58.0 lib/blocks/sleep.rb
bake-toolkit-2.57.0 lib/blocks/sleep.rb
bake-toolkit-2.56.0 lib/blocks/sleep.rb
bake-toolkit-2.55.1 lib/blocks/sleep.rb
bake-toolkit-2.55.0 lib/blocks/sleep.rb
bake-toolkit-2.54.3 lib/blocks/sleep.rb
bake-toolkit-2.54.2 lib/blocks/sleep.rb
bake-toolkit-2.54.1 lib/blocks/sleep.rb
bake-toolkit-2.54.0 lib/blocks/sleep.rb
bake-toolkit-2.53.0 lib/blocks/sleep.rb
bake-toolkit-2.52.1 lib/blocks/sleep.rb
bake-toolkit-2.52.0 lib/blocks/sleep.rb
bake-toolkit-2.51.2 lib/blocks/sleep.rb
bake-toolkit-2.51.1 lib/blocks/sleep.rb
bake-toolkit-2.51.0 lib/blocks/sleep.rb