Class: ConfigCLI::Runcom

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/thorium/tasks/configurator.rb

Overview

RC files setup

Constant Summary collapse

TH_URL =
"https://raw.githubusercontent.com/dzotokan/thorium/master"
RC_PATH =
"lib/thorium/templates/rc"
RC_FULL =
"#{TH_URL}/#{RC_PATH}"

Instance Method Summary collapse

Instance Method Details

#allObject



13
14
15
16
17
18
# File 'lib/thorium/tasks/configurator.rb', line 13

def all
  [:vim, :sqlite].each do |m|
    say "--> Running rc for: #{m}", :yellow
    send m
  end
end

#sqliteObject



27
28
29
30
# File 'lib/thorium/tasks/configurator.rb', line 27

def sqlite
  say_rc_fetch
  get "#{RC_FULL}/sqliterc.th-tpl", "~/.sqliterc"
end

#vimObject



21
22
23
24
# File 'lib/thorium/tasks/configurator.rb', line 21

def vim
  say_rc_fetch
  get "#{RC_FULL}/vimrc.th-tpl", "~/.vimrc"
end