Class: VHS::Config

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/vhs/cli/config.rb

Instance Method Summary collapse

Instance Method Details

#cliObject



6
7
8
9
10
# File 'lib/vhs/cli/config.rb', line 6

def cli
  template 'vhs.yml', '.vhs.yml'
  append_to_file '.gitignore', '.vhs.yml'
  puts "VHS CLI configured"
end

#rspecObject



14
15
16
17
18
# File 'lib/vhs/cli/config.rb', line 14

def rspec
  destination_path = options[:destination_path]
  copy_file 'rspec.rb', destination_path
  puts "VHS configured for RSpec"
end