6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/bones/app/git.rb', line 6
def self.initialize_git
Bones::App::Create.class_eval {
include ::Bones::App::Git
option
option('Git Options:')
option('--git', 'Initialize a git repository for the project.',
lambda { |_| config[:git] = true }
)
option('--github DESCRIPTION', 'Create a new GitHub project.',
'Requires a project description.',
lambda { |desc|
config[:git] = true,
config[:github] = true,
config[:github_desc] = desc
}
)
in_output_directory :initialize_git, :initialize_github
}
end
|