Class: Codeqa::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/codeqa/installer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_root) ⇒ Installer

Returns a new instance of Installer.



9
10
11
# File 'lib/codeqa/installer.rb', line 9

def initialize(app_root)
  @app_root=Pathname.new(File.expand_path(app_root))
end

Class Method Details

.call(app_root) ⇒ Object



5
6
7
# File 'lib/codeqa/installer.rb', line 5

def self.call(app_root)
  new(app_root).call
end

Instance Method Details

#callObject



13
14
15
16
# File 'lib/codeqa/installer.rb', line 13

def call
  generate_dot_codeqa
  install_codeqa_git_hook
end