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