Class: Babushka::ImplicitSource

Inherits:
Source show all
Defined in:
lib/babushka/implicit_source.rb

Instance Attribute Summary

Attributes inherited from Source

#deps, #name, #templates, #uri

Instance Method Summary collapse

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?, #update!, #updated_at

Methods included from PathHelpers

cd, in_build_dir, in_download_dir

Methods included from ShellHelpers

cmd_dir, current_username, log_shell, login_shell, raw_shell, shell, shell!, shell?, shell_cmd, sudo, which

Methods included from LogHelpers

debug, deprecated!, log, log_block, log_error, log_ok, log_stderr, log_warn, removed!

Constructor Details

#initialize(name) ⇒ ImplicitSource

Returns a new instance of ImplicitSource.

Raises:

  • (ArgumentError)

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

#pathObject


14
15
16
# File 'lib/babushka/implicit_source.rb', line 14

def path
  nil
end

#present?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'lib/babushka/implicit_source.rb', line 18

def present?
  false
end

#typeObject


10
11
12
# File 'lib/babushka/implicit_source.rb', line 10

def type
  :implicit
end