Method: Marv::Global#initialize

Defined in:
lib/marv/global.rb

#initialize(task, from_command = false) ⇒ Global

Returns a new instance of Global.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/marv/global.rb', line 6

def initialize(task, from_command=false)
  @task = task

  create_global_folders

  @current = current_options
  @default = default_options

  generate_config(from_command)

  @path = global_path
  @config = global_config
  @servers = local_servers
  @plugins = global_plugins
  @themes = global_themes
  @layouts = global_layouts

  @task.shell.mute do
    clean_broken_links(global_projects_paths)
    link_global_projects
  end
end