Class: KCommercial::Resources::BundleGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb

Direct Known Subclasses

LibBundleGenerator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_name, bundle_name, resource_path) ⇒ BundleGenerator

Returns a new instance of BundleGenerator.



6
7
8
9
10
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 6

def initialize(component_name, bundle_name, resource_path)
  @component_name = component_name
  @bundle_name = bundle_name
  @resource_path = resource_path
end

Instance Attribute Details

#bundle_nameObject

Returns the value of attribute bundle_name.



4
5
6
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 4

def bundle_name
  @bundle_name
end

#component_nameObject

Returns the value of attribute component_name.



4
5
6
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 4

def component_name
  @component_name
end

#resource_pathObject

Returns the value of attribute resource_path.



4
5
6
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 4

def resource_path
  @resource_path
end

Instance Method Details

#check_exist?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 12

def check_exist?
  raise NotImplementedError, "#{self.class.name}#check是抽象方法"
end

#generate!Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb', line 16

def generate!
  raise NotImplementedError, "#{self.class.name}#generate!是抽象方法"
end