lib/ronin/gen/generators/repository.rb in ronin-gen-1.0.0 vs lib/ronin/gen/generators/repository.rb in ronin-gen-1.0.1.rc1
- old
+ new
@@ -36,10 +36,13 @@
METADATA_FILE = Ronin::Repository::METADATA_FILE
# The repository lib directory
LIB_DIR = Ronin::Repository::LIB_DIR
+ # The primary script directory
+ SCRIPT_DIR = Ronin::Repository::SCRIPT_DIRS.first
+
# Default license to use
DEFAULT_LICENSE = 'CC-by'
# Default authors to use
DEFAULT_AUTHORS = ['Anonymous']
@@ -90,11 +93,11 @@
def generate
mkdir LIB_DIR
mkdir File.join(LIB_DIR,'ronin')
touch File.join(LIB_DIR,Ronin::Repository::INIT_FILE)
+ mkdir SCRIPT_DIR
mkdir Ronin::Repository::DATA_DIR
- mkdir Ronin::Repository::CACHE_DIR
end
#
# Generates the Rakefile of the repository.
#