Sha256: 5b53b886cc8881f59ab63caebe41d12aaa353845fa8dea0f61055c4acf517938

Contents?: true

Size: 654 Bytes

Versions: 48

Compression:

Stored size: 654 Bytes

Contents

class LockdownGenerator < RubiGen::Base
  
  DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'],
                              Config::CONFIG['ruby_install_name'])
  
  default_options :author => "Andrew Stone"
  
  attr_reader :name, :framework
  
  def initialize(runtime_args, runtime_options = {})
    super
    usage if args.empty?
    @destination_root = File.expand_path(args.shift)
    @name = base_name
    @framework = runtime_options[:framework]
  end

  def manifest
    record do |m|
      m.directory "lib/lockdown"
      m.template "session.rb", "lib/lockdown/session.rb"
      m.file "init.rb", "lib/lockdown/init.rb"
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
lockdown-0.3.10 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.13 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.11 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.1 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.14 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.12 app_generators/lockdown/lockdown_generator.rb
lockdown-0.4.2 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.8 app_generators/lockdown/lockdown_generator.rb
lockdown-0.4.3 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.9 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.7 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.3 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.5 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.4 app_generators/lockdown/lockdown_generator.rb
lockdown-0.4.0 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.6 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.15 app_generators/lockdown/lockdown_generator.rb
lockdown-0.3.2 app_generators/lockdown/lockdown_generator.rb
lockdown-0.4.1 app_generators/lockdown/lockdown_generator.rb
lockdown-0.4.4 app_generators/lockdown/lockdown_generator.rb