Class: Pandora::Commands::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/pandora/commands/setup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Setup

Initializes the command with the file whose setup must be created.

Parameters:

  • file (File)

    that specifies the setup to be created.



11
12
13
# File 'lib/pandora/commands/setup.rb', line 11

def initialize(file)
  @file = file
end

Instance Attribute Details

#fileObject (readonly)

File that specifies the setup to be created



6
7
8
# File 'lib/pandora/commands/setup.rb', line 6

def file
  @file
end

Instance Method Details

#executeObject

Executes the command



16
17
18
19
20
21
# File 'lib/pandora/commands/setup.rb', line 16

def execute
  self.create_projects
  self.setup_workspace
  self.link_dependencies
  self.embed_frameworks
end