lib/codelation/development/dot_files.rb in codelation-cli-0.0.5 vs lib/codelation/development/dot_files.rb in codelation-cli-0.0.6
- old
+ new
@@ -1,5 +1,6 @@
+require "fileutils"
require "thor"
module Codelation
class Cli < Thor
private
@@ -16,9 +17,10 @@
copy_file "dot_files/.jshintrc", "~/.jshintrc"
copy_file "dot_files/.rubocop.yml", "~/.rubocop.yml"
copy_file "dot_files/.scss-lint.yml", "~/.scss-lint.yml"
# Add `source ~/.codelation.bash` to ~/.bash_profile if it doesn't exist
+ FileUtils.touch(File.expand_path("~/.bash_profile"))
append_to_file "~/.bash_profile", "source ~/.codelation/bash/.codelation.bash"
end
end
end