11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/ether_dev/generators/project_generator.rb', line 11
def generate
$stdout.sync = true
create_directory(@project_name)
create_file(project_templates["Gemfile"], @project_name, "Gemfile")
create_file(project_templates["Rakefile"], @project_name, "Rakefile")
create_directory(@project_name, "contracts")
create_file(project_templates["Greeter.sol"], @project_name, "contracts", "Greeter.sol")
create_directory(@project_name, "config")
create_file(project_templates["blockchain.yml"], @project_name, "config", "blockchain.yml")
create_directory(@project_name, "test")
create_file(project_templates["test_helper.rb"], @project_name, "test", "test_helper.rb")
create_directory(@project_name, "test", "contracts")
create_file(project_templates["greeter_test.rb"], @project_name, "test", "contracts", "greeter_test.rb")
run_bundler
puts
puts
puts " \u{1F389}\u{1F389}\u{1F389} Get started with EtherDev\\n\n\n Your new EtherDev project is now generated. Now start Ganache and run\n the following command to compile, deploy and test the example Greeter.sol\n contract:\n\n $ bundle exec rake\n\n Check out the Wiki for next steps:\n https://github.com/michiels/ruby-etherdev/wiki\n EOF\nend\n"
|