Class: Babushka::ImplicitSource
- Defined in:
- lib/babushka/implicit_source.rb
Instance Attribute Summary
Attributes inherited from Source
#deps, #name, #templates, #uri
Instance Method Summary collapse
-
#initialize(name) ⇒ ImplicitSource
constructor
A new instance of ImplicitSource.
- #path ⇒ Object
- #present? ⇒ Boolean
- #type ⇒ Object
Methods inherited from Source
#==, #add!, #clear!, default_remote_for, #description_pieces, #find, #find_template, for_path, for_remote, #implicit?, #inspect, #load!, #load_deps!, #local?, present, #remote?, #repo, #repo?, source_prefix, #update!, #updated_at
Methods included from LogHelpers
debug, deprecated!, log, log_block, log_error, log_ok, log_stderr, log_warn, removed!
Methods included from ShellHelpers
cmd_dir, current_username, log_shell, login_shell, raw_shell, shell, shell!, shell?, shell_cmd, sudo, which
Methods included from PathHelpers
cd, in_build_dir, in_download_dir
Constructor Details
#initialize(name) ⇒ ImplicitSource
Returns a new instance of ImplicitSource.
4 5 6 7 8 |
# File 'lib/babushka/implicit_source.rb', line 4 def initialize name raise ArgumentError, "Implicit sources require a name." if name.nil? init @name = name end |
Instance Method Details
#path ⇒ Object
14 15 16 |
# File 'lib/babushka/implicit_source.rb', line 14 def path nil end |
#present? ⇒ Boolean
18 19 20 |
# File 'lib/babushka/implicit_source.rb', line 18 def present? false end |
#type ⇒ Object
10 11 12 |
# File 'lib/babushka/implicit_source.rb', line 10 def type :implicit end |