Class: Shanty::StaticProject

Inherits:
Project
  • Object
show all
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

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_pathObject

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_buildObject



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