Class: Raxe

Inherits:
Object
  • Object
show all
Defined in:
lib/raxe.rb,
lib/raxe/builder.rb,
lib/raxe/commands.rb,
lib/raxe/destroyer.rb,
lib/raxe/generator.rb,
lib/raxe/installer.rb,
lib/raxe/tasks.rb

Overview

Rake::Application

Defined Under Namespace

Classes: Builder, Commands, Destroyer, Generator, Installer, Tasks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRaxe

Returns a new instance of Raxe.



11
12
13
14
15
16
17
18
19
20
# File 'lib/raxe.rb', line 11

def initialize
  # Step 1: Checks for a conf file to load
  @paths = {}
  p_check_conf
  
  # Step 2: Setup the components
  @installer = Raxe::Installer.new( self )
  @generator = Raxe::Generator.new( self )
  @commands = Raxe::Commands.new( self )
end

Instance Attribute Details

#pathsObject (readonly)

Returns the value of attribute paths.



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

def paths
  @paths
end

#setup_flagObject (readonly)

Returns the value of attribute setup_flag.



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

def setup_flag
  @setup_flag
end

Instance Method Details

#build(builder_data) ⇒ Object

destroy



38
39
40
# File 'lib/raxe.rb', line 38

def build( builder_data )
#   Raxe::Builder.build( builder_data )
end

#commands(command_data) ⇒ Object

build



42
43
44
# File 'lib/raxe.rb', line 42

def commands( command_data )
  @commands.command( command_data )
end

#destroy(destroyer_data) ⇒ Object

install



34
35
36
# File 'lib/raxe.rb', line 34

def destroy( destroyer_data )
#   Raxe::Destroyer.destroy( destroy_data )
end

#generate(generator_data) ⇒ Object

initialize



22
23
24
# File 'lib/raxe.rb', line 22

def generate( generator_data )
  @generator.generate( generator_data )
end

#install(installer_data = :install) ⇒ Object

generate



26
27
28
29
30
31
32
# File 'lib/raxe.rb', line 26

def install( installer_data = :install )
  install_data = { 
    :req => installer_data ,
    :callback => lambda { p_check_conf }
  } # install_data
  @installer.install( install_data )
end