Skip to content

Commit

Permalink
Fix bad .gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Stanley committed May 30, 2019
1 parent 144b30d commit cb359e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
/.shards/
*.dwarf
/node_modules/
snipcli
snipline_cli
/snipcli
/snipline_cli
13 changes: 13 additions & 0 deletions src/snipline_cli/services/create_config_directory.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module SniplineCli
module Services
class CreateConfigDirectory
def self.run(file)
directory_name = File.expand_path(File.dirname(file))
unless File.directory?(directory_name)
SniplineCli.log.debug("Making config directory #{directory_name}")
Dir.mkdir(directory_name)
end
end
end
end
end

0 comments on commit cb359e5

Please sign in to comment.