Sha256: 9f1c19f212f04a1ff39811410d44f288c6e3275e55567d0b0a7c5e52692f15c2

Contents?: true

Size: 658 Bytes

Versions: 6

Compression:

Stored size: 658 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 "access.rb", "lib/lockdown/access.rb"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lockdown-0.1.0 app_generators/lockdown/lockdown_generator.rb
lockdown-0.1.1 app_generators/lockdown/lockdown_generator.rb
lockdown-0.1.2 app_generators/lockdown/lockdown_generator.rb
lockdown-0.1.3 app_generators/lockdown/lockdown_generator.rb
lockdown-0.1.4 app_generators/lockdown/lockdown_generator.rb
lockdown-0.2.0 app_generators/lockdown/lockdown_generator.rb