Sha256: 40aef0c40d7a847e8821f9a223874023fd2d67556d815404b32568a05fc45f64

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

require 'generators/oneshot/oneshot_generator/configuration'

class OneshotGenerator < Rails::Generators::NamedBase
  module Configurator
    def configure
      yield(configuration)
    end

    def configuration
      @configuration ||= Configuration.new
    end
    alias :config :configuration

    def configuration=(config)
      @configuration = config
    end
    alias :config= :configuration=
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
oneshot_task_generator-0.2.0 lib/generators/oneshot/oneshot_generator/configurator.rb
oneshot_task_generator-0.1.5 lib/generators/oneshot/oneshot_generator/configurator.rb
oneshot_task_generator-0.1.4 lib/generators/oneshot/oneshot_generator/configurator.rb
oneshot_task_generator-0.1.3 lib/generators/oneshot/oneshot_generator/configurator.rb
oneshot_task_generator-0.1.2 lib/generators/oneshot/oneshot_generator/configurator.rb
oneshot_task_generator-0.1.1 lib/generators/oneshot/oneshot_generator/configurator.rb
oneshot_task_generator-0.1.0 lib/generators/oneshot/oneshot_generator/configurator.rb