Class: CASClient::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.namespace(name = nil) ⇒ Object



14
15
16
# File 'lib/generators/install_generator.rb', line 14

def self.namespace(name = nil)
  super.gsub("c_a_s_client", "cas_client")
end

Instance Method Details

#manifestObject



8
9
10
11
12
# File 'lib/generators/install_generator.rb', line 8

def manifest
  copy_file "sessions_controller.rb", "app/controllers/sessions_controller.rb.example"
  copy_file "cas_server.yml", "config/cas_server.yml.example"
  copy_file "user.rb", "app/models/user.rb.example"
end