hobo-inviqa 0.0.9.pre.alpha → 0.0.9.pre.rc1
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.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/hobo/tasks/magento.rb +43 -36
- data/lib/hobo/tasks/vm.rb +6 -6
- data/lib/hobo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDMyYjk4NWFmYzI3OWI5MDc4NDMwZTRiNzZmYWU0M2NlMjYyN2M3NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDM5MmEyZDNiNzk0MGIyNTQ2NmVjYTIxYTNkYTg5ZDg3ZTUxMTllOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTM5YzRkNGI2NzQ3YjVkOTExOWVhOTc3MWRkMzQ4OTg0OGY0YmJiMzkxYjkx
|
10
|
+
ZWRlZTc4ZDljMGUxNzY2YWU1MDY0Y2RkYjY2NTRmOGVhMzk5NjNmNDZjODVm
|
11
|
+
MTM4YTFhYmY2YmY4OWM4MjM5MTI2M2MxNzJhODAxNDg5ODM1N2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjc0ZDRlZjVkMWZkZjllMzliYmFhYWUxZTg2YTliOWIzZmJiZTU0ZTA2Nzdh
|
14
|
+
MzdiNTVmNGMyMmEzYmZiNjE5YmE3MDIzMDdhODIyZjNkMTBmODBiOGEwYTQy
|
15
|
+
ZmE2YjYxM2FhNDZhMzE2OWZlOWViN2VkYjgzM2I4N2Y1ODUxYWY=
|
data/Gemfile.lock
CHANGED
data/lib/hobo/tasks/magento.rb
CHANGED
@@ -16,6 +16,7 @@ namespace :magento do
|
|
16
16
|
task :run => ['tools:n98magerun'] do
|
17
17
|
Hobo.ui.success "Running setup scripts"
|
18
18
|
vm_shell("bin/n98-magerun.phar sys:setup:incremental -n", :realtime => true, :indent => 2)
|
19
|
+
Hobo.ui.separator
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
@@ -25,51 +26,57 @@ namespace :magento do
|
|
25
26
|
task :clear => ['tools:n98magerun'] do
|
26
27
|
Hobo.ui.success "Clearing magento cache"
|
27
28
|
vm_shell("bin/n98-magerun.phar cache:flush", :realtime => true, :indent => 2)
|
29
|
+
Hobo.ui.separator
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
31
|
-
desc "
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
desc "Enable magento errors"
|
40
|
-
task :'enable-errors' do
|
41
|
-
error_config = File.join(Hobo.project_path, 'public/errors/local.xml')
|
42
|
-
|
43
|
-
FileUtils.cp(
|
44
|
-
error_config + ".sample",
|
45
|
-
error_config
|
46
|
-
) unless File.exists? error_config
|
47
|
-
end
|
48
|
-
|
49
|
-
desc "Initializes magento specifics on the virtual machine after a fresh build"
|
50
|
-
task :'initialize-vm' => ['magento:enable-errors', 'tools:n98magerun', 'magento:setup-scripts:run', 'magento:configure-urls'] do
|
51
|
-
initialized = vm_shell("bin/n98-magerun.phar admin:user:list | grep admin", :exit_status => true) == 0
|
52
|
-
|
53
|
-
unless initialized
|
54
|
-
Hobo.ui.success "Initializing VM"
|
33
|
+
desc "Configuration related tasks"
|
34
|
+
namespace :config do
|
35
|
+
desc "Configure magento base URLs"
|
36
|
+
task :'configure-urls' => ['tools:n98magerun'] do
|
37
|
+
Hobo.ui.success "Configuring magento base urls"
|
38
|
+
url = "http://#{Hobo.project_config.hostname}/"
|
39
|
+
vm_shell("bin/n98-magerun.phar config:set web/unsecure/base_url '#{url}'", :realtime => true, :indent => 2)
|
40
|
+
vm_shell("bin/n98-magerun.phar config:set web/secure/base_url '#{url}'", :realtime => true, :indent => 2)
|
55
41
|
Hobo.ui.separator
|
42
|
+
end
|
43
|
+
|
44
|
+
desc "Enable magento errors"
|
45
|
+
task :'enable-errors' do
|
46
|
+
error_config = File.join(Hobo.project_path, 'public/errors/local.xml')
|
56
47
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
48
|
+
FileUtils.cp(
|
49
|
+
error_config + ".sample",
|
50
|
+
error_config
|
51
|
+
) unless File.exists? error_config
|
52
|
+
end
|
61
53
|
|
62
|
-
|
63
|
-
|
64
|
-
|
54
|
+
desc "Create admin user"
|
55
|
+
task :'create-admin-user' do
|
56
|
+
initialized = vm_shell("bin/n98-magerun.phar admin:user:list | grep admin", :exit_status => true) == 0
|
57
|
+
unless initialized
|
58
|
+
Hobo.ui.success "Creating admin user"
|
59
|
+
vm_shell("bin/n98-magerun.phar admin:user:create admin '' admin admin admin", :realtime => true, :indent => 2)
|
65
60
|
Hobo.ui.separator
|
66
61
|
end
|
62
|
+
end
|
67
63
|
|
68
|
-
|
69
|
-
|
64
|
+
desc "Enable rewrites"
|
65
|
+
task :'enable-rewrites' do
|
66
|
+
Hobo.ui.success "Enabling rewrites"
|
67
|
+
vm_shell("bin/n98-magerun.phar config:set web/seo/use_rewrites 1", :realtime => true, :indent => 2)
|
68
|
+
Hobo.ui.separator
|
70
69
|
end
|
71
70
|
end
|
72
|
-
end
|
73
71
|
|
74
|
-
|
75
|
-
task
|
72
|
+
desc "Initializes magento specifics on the virtual machine after a fresh build"
|
73
|
+
task :'initialize-vm' => [
|
74
|
+
'magento:config:enable-errors',
|
75
|
+
'tools:n98magerun',
|
76
|
+
'magento:setup-scripts:run',
|
77
|
+
'magento:config:configure-urls',
|
78
|
+
'magento:config:create-admin-user',
|
79
|
+
'magento:config:enable-rewrites',
|
80
|
+
'magento:cache:clear'
|
81
|
+
]
|
82
|
+
end
|
data/lib/hobo/tasks/vm.rb
CHANGED
@@ -19,7 +19,7 @@ namespace :vm do
|
|
19
19
|
args.push color
|
20
20
|
args.push opts
|
21
21
|
|
22
|
-
|
22
|
+
shell *args
|
23
23
|
end
|
24
24
|
|
25
25
|
def windows_short dir
|
@@ -37,10 +37,10 @@ namespace :vm do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
desc "Start & provision VM"
|
40
|
-
task :up => [ '
|
40
|
+
task :up => [ 'assets:download', 'vm:start', 'vm:provision', 'deps:composer', 'assets:apply' ]
|
41
41
|
|
42
42
|
desc "Stop VM"
|
43
|
-
task :stop
|
43
|
+
task :stop do
|
44
44
|
vagrantfile do
|
45
45
|
Hobo.ui.title "Stopping VM"
|
46
46
|
vagrant_exec 'suspend'
|
@@ -52,7 +52,7 @@ namespace :vm do
|
|
52
52
|
task :rebuild => [ 'vm:destroy', 'vm:up' ]
|
53
53
|
|
54
54
|
desc "Destroy VM"
|
55
|
-
task :destroy
|
55
|
+
task :destroy do
|
56
56
|
vagrantfile do
|
57
57
|
Hobo.ui.title "Destroying VM"
|
58
58
|
vagrant_exec 'destroy', '--force'
|
@@ -61,7 +61,7 @@ namespace :vm do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
desc "Start VM without provision"
|
64
|
-
task :start => [ "deps:gems", "deps:vagrant_plugins" ] do
|
64
|
+
task :start => [ "deps:gems", "deps:chef", "deps:vagrant_plugins" ] do
|
65
65
|
vagrantfile do
|
66
66
|
Hobo.ui.title "Starting vagrant VM"
|
67
67
|
vagrant_exec 'up', '--no-provision'
|
@@ -70,7 +70,7 @@ namespace :vm do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
desc "Provision VM"
|
73
|
-
task :provision => [ "deps:
|
73
|
+
task :provision => [ "deps:chef" ] do
|
74
74
|
vagrantfile do
|
75
75
|
Hobo.ui.title "Provisioning VM"
|
76
76
|
vagrant_exec 'provision'
|
data/lib/hobo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo-inviqa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.9.pre.
|
4
|
+
version: 0.0.9.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Simons
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|