Class: Mode::Commands::Package

Inherits:
Thor
  • Object
show all
Defined in:
lib/mode/commands/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, base_path, package_name, resource_name) ⇒ Package

Returns a new instance of Package.



11
12
13
14
15
16
# File 'lib/mode/commands/package.rb', line 11

def initialize(data, base_path, package_name, resource_name)
  @data = data
  @base_path = base_path
  @package_name = package_name
  @resource_name = resource_name
end

Instance Attribute Details

#base_pathObject

Returns the value of attribute base_path.



7
8
9
# File 'lib/mode/commands/package.rb', line 7

def base_path
  @base_path
end

#dataObject

Returns the value of attribute data.



6
7
8
# File 'lib/mode/commands/package.rb', line 6

def data
  @data
end

#package_nameObject

Returns the value of attribute package_name.



8
9
10
# File 'lib/mode/commands/package.rb', line 8

def package_name
  @package_name
end

#resource_nameObject

Returns the value of attribute resource_name.



9
10
11
# File 'lib/mode/commands/package.rb', line 9

def resource_name
  @resource_name
end