Module: Batali
- Defined in:
- lib/batali.rb,
lib/batali/git.rb,
lib/batali/unit.rb,
lib/batali/b_file.rb,
lib/batali/config.rb,
lib/batali/monkey.rb,
lib/batali/origin.rb,
lib/batali/source.rb,
lib/batali/command.rb,
lib/batali/utility.rb,
lib/batali/version.rb,
lib/batali/manifest.rb,
lib/batali/tag_lines.rb,
lib/batali/origin/git.rb,
lib/batali/source/git.rb,
lib/batali/origin/path.rb,
lib/batali/source/path.rb,
lib/batali/source/site.rb,
lib/batali/unit_loader.rb,
lib/batali/score_keeper.rb,
lib/batali/command/cache.rb,
lib/batali/command/update.rb,
lib/batali/command/display.rb,
lib/batali/command/install.rb,
lib/batali/command/resolve.rb,
lib/batali/requirement_list.rb,
lib/batali/command/configure.rb,
lib/batali/origin/chef_server.rb,
lib/batali/origin/remote_site.rb,
lib/batali/source/chef_server.rb
Defined Under Namespace
Modules: Git Classes: BFile, Command, Config, Manifest, Origin, RequirementList, ScoreKeeper, Source, Struct, Unit, UnitDependency, UnitLoader, UnitRequirement, UnitVersion, Utility
Constant Summary collapse
- VERSION =
Current version
Gem::Version.new('0.2.30')
- TAG_LINES =
[ "I got 99 problems but a policyfile ain't one", "Solve the way you want, not the way you're told", "Build environments, not applications", "DRY should be the rule, not the exception", "Solve for the forest, not just a tree" ]
Class Attribute Summary collapse
Class Method Summary collapse
-
.debug(*args) ⇒ Object
Write debug message.
-
.define(&block) ⇒ AttributeStruct
Create a new file.
-
.verbose(*args) ⇒ Object
Write verbose message.
Class Attribute Details
.ui ⇒ Bogo::Ui
25 26 27 |
# File 'lib/batali.rb', line 25 def ui @ui end |
Class Method Details
.debug(*args) ⇒ Object
Write debug message
46 47 48 49 50 |
# File 'lib/batali.rb', line 46 def debug(*args) if(ui) ui.debug(*args) end end |
.define(&block) ⇒ AttributeStruct
Create a new file
63 64 65 66 67 68 |
# File 'lib/batali/b_file.rb', line 63 def self.define(&block) struct = Struct.new struct.set_state!(:value_collapse => true) struct.build!(&block) struct end |
.verbose(*args) ⇒ Object
Write verbose message
39 40 41 42 43 |
# File 'lib/batali.rb', line 39 def verbose(*args) if(ui) ui.verbose(*args) end end |