Class: Shanty::StaticProject
- Defined in:
- lib/shanty/projects/static.rb
Overview
Public: Base type of project, simply creates a tarball of the directory
Instance Attribute Summary
Attributes inherited from Project
#changed, #name, #options, #parents_by_path, #path
Instance Method Summary collapse
-
#artifact_path ⇒ Object
Public: The absolute path to the artifact that would be created by this project when built.
- #on_build ⇒ Object
Methods inherited from Project
#externals_by_name, #initialize, #inspect, #to_s
Methods included from Mixins::Callbacks
#callbacks, included, #publish, #subscribe
Methods included from Mixins::ActsAsLinkGraphNode
#add_child, #add_parent, #all_children, #all_parents, #children, included, #parents
Constructor Details
This class inherits a constructor from Shanty::Project
Instance Method Details
#artifact_path ⇒ Object
Public: The absolute path to the artifact that would be created by this project when built.
Returns a String representing the absolute path to the artifact.
17 18 19 |
# File 'lib/shanty/projects/static.rb', line 17 def artifact_path "#{@root_dir}/build/#{@options['artifact_name'] || name}-#{@build_number}.tgz" end |
#on_build ⇒ Object
8 9 10 11 |
# File 'lib/shanty/projects/static.rb', line 8 def on_build # FIXME: Create a tarball of the current project. true end |