scaffnew 1.0.0.rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ module Scaffnew
2
+
3
+ VERSION = "1.0.0.rc"
4
+
5
+ LOCAL_PATH = File.expand_path("~/.scaffnew")
6
+ LOCAL_REPO_PATH = File.expand_path("#{LOCAL_PATH}/repositories")
7
+ LOCAL_WORK_PATH = File.expand_path("#{LOCAL_PATH}/working")
8
+
9
+ PACKAGE_DATA_NAME = "data.tar.gz"
10
+ PACKAGE_METADATA_NAME = "metadata"
11
+
12
+ end
@@ -0,0 +1,29 @@
1
+ require_relative "command"
2
+
3
+ module Scaffnew
4
+
5
+ class Remove < Command
6
+
7
+ def command (params)
8
+
9
+ p_name = params[0]
10
+
11
+ error "Package name param uninformed" if p_name.nil?
12
+
13
+ metadata = @io.getPackage(p_name)
14
+
15
+ error "Package #{p_name} not found" if metadata.nil?
16
+
17
+ realy = @cli.ask("Do you realy want remove #{p_name}?", :limited_to => ["y", "n"])
18
+
19
+ if realy == 'n' then
20
+ return
21
+ end
22
+
23
+ @io.removePackageFolder(p_name)
24
+ success "Package #{p_name} removed"
25
+
26
+ end
27
+
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'scaffnew/params'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.required_ruby_version = '>= 1.9.3'
8
+ spec.requirements << 'tar'
9
+ spec.requirements << 'wget'
10
+
11
+ spec.name = "scaffnew"
12
+ spec.version = Scaffnew::VERSION
13
+ spec.authors = ["Mar, G."]
14
+ spec.email = ["gfmarster@gmail.com"]
15
+
16
+ spec.summary = %q{A simple scaffold for many purposes.}
17
+ spec.homepage = "https://github.com/guilhermemar/scaffnew"
18
+ spec.license = "GPL-3.0"
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|vagrantfile)/}) }
21
+ spec.bindir = "bin"
22
+ spec.executables = ["scaff", "scaffnew"]
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.post_install_message = %q{scaffnew successfully installed, just type 'scaff' in terminal to start use}
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.10"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ end
@@ -0,0 +1,40 @@
1
+ $bootstrap = <<SCRIPT
2
+
3
+ echo "####"
4
+ echo "###"
5
+ echo "##"
6
+ echo "#"
7
+ echo "# Starting custon features"
8
+
9
+ echo "#"
10
+ echo "# Updating system (This may take a few minutes...)"
11
+ apt-get update &> /dev/null
12
+ apt-get install -y git &> /dev/null
13
+
14
+ echo "#"
15
+ echo "# Installing basic gems"
16
+ gem install bundler &> /dev/null
17
+
18
+ echo "cd /project" >> /home/vagrant/.bash_profile
19
+ chown vagrant:vagrant /home/vagrant/.bash_profile
20
+
21
+ echo "#"
22
+ echo "#"
23
+ echo "# Ruby development machine configured successfully"
24
+ echo "#"
25
+ echo "# See you space cowboy"
26
+ echo "#"
27
+ echo "##"
28
+ echo "###"
29
+ echo "####"
30
+
31
+ SCRIPT
32
+
33
+ Vagrant.configure(2) do |config|
34
+ config.vm.box = "ubuntu/trusty32"
35
+ config.vm.hostname = "ruby"
36
+ config.vm.synced_folder ".", "/project"
37
+
38
+ config.vm.provision :shell, inline: $bootstrap
39
+ config.vm.provision :file, source: "~/.ssh/id_rsa", destination: "~/.ssh/id_rsa"
40
+ end
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scaffnew
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.rc
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Mar, G.
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-11-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.10'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.10'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '10.0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '10.0'
46
+ description:
47
+ email:
48
+ - gfmarster@gmail.com
49
+ executables:
50
+ - scaff
51
+ - scaffnew
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - .gitignore
56
+ - Gemfile
57
+ - Gemfile.lock
58
+ - LICENSE
59
+ - README.md
60
+ - Rakefile
61
+ - bin/scaff
62
+ - bin/scaffnew
63
+ - docs/plan.md
64
+ - lib/scaffnew.rb
65
+ - lib/scaffnew/add.rb
66
+ - lib/scaffnew/cli.rb
67
+ - lib/scaffnew/command.rb
68
+ - lib/scaffnew/io.rb
69
+ - lib/scaffnew/list.rb
70
+ - lib/scaffnew/new.rb
71
+ - lib/scaffnew/package.rb
72
+ - lib/scaffnew/params.rb
73
+ - lib/scaffnew/remove.rb
74
+ - scaffnew.gemspec
75
+ - vagrantfile
76
+ homepage: https://github.com/guilhermemar/scaffnew
77
+ licenses:
78
+ - GPL-3.0
79
+ post_install_message: scaffnew successfully installed, just type 'scaff' in terminal
80
+ to start use
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: 1.9.3
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>'
94
+ - !ruby/object:Gem::Version
95
+ version: 1.3.1
96
+ requirements:
97
+ - tar
98
+ - wget
99
+ rubyforge_project:
100
+ rubygems_version: 1.8.23
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: A simple scaffold for many purposes.
104
+ test_files: []