Skip to content

Commit 9654a92

Browse files
committed
237 Create ~/.automatic/assets dir on automatic-config scaffold
1 parent b4996ab commit 9654a92

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

bin/automatic-config

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# Author:: kzgs
55
# 774 <http://id774.net>
66
# Created:: Mar 11, 2012
7-
# Updated:: Dec 20, 2012
8-
# Copyright:: kzgs Copyright (c) 2012
7+
# Updated:: Jan 24, 2013
8+
# Copyright:: kzgs Copyright (c) 2012-2013
99
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
1010

1111
root_dir = File.expand_path("..", File.dirname(__FILE__))
@@ -36,6 +36,12 @@ subparsers = {
3636
puts "Creating #{dir}"
3737
end
3838
}
39+
dir = (File.expand_path('~/.automatic/assets'))
40+
unless File.exist?(dir)
41+
FileUtils.mkdir_p(dir)
42+
FileUtils.cp_r(root_dir + '/assets/siteinfo', dir + '/siteinfo')
43+
puts "Creating #{dir}"
44+
end
3945
dir = (File.expand_path('~/.automatic/config'))
4046
unless File.exist?(dir)
4147
FileUtils.mkdir_p(dir)

spec/plugins/filter/full_feed_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Author:: 774 <http://id774.net>
44
# Created:: Jan 24, 2013
55
# Updated:: Jan 24, 2013
6-
# Copyright:: 774 Copyright (c) 2012
6+
# Copyright:: 774 Copyright (c) 2013
77
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
88

99
require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper')

0 commit comments

Comments
 (0)