Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
4a85aefe
Commit
4a85aefe
authored
Jul 25, 2014
by
Misha Brukman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename "Gsutil" to "Gcloud" now that we're updating "gcloud" and not "gsutil".
Also renamed files accordingly.
parent
7f389365
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
builder/googlecompute/builder.go
builder/googlecompute/builder.go
+1
-1
builder/googlecompute/step_update_gcloud.go
builder/googlecompute/step_update_gcloud.go
+4
-4
builder/googlecompute/step_update_gcloud_test.go
builder/googlecompute/step_update_gcloud_test.go
+8
-8
No files found.
builder/googlecompute/builder.go
View file @
4a85aefe
...
...
@@ -65,7 +65,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
SSHWaitTimeout
:
5
*
time
.
Minute
,
},
new
(
common
.
StepProvision
),
new
(
StepUpdateG
sutil
),
new
(
StepUpdateG
cloud
),
new
(
StepCreateImage
),
new
(
StepUploadImage
),
new
(
StepRegisterImage
),
...
...
builder/googlecompute/step_update_g
sutil
.go
→
builder/googlecompute/step_update_g
cloud
.go
View file @
4a85aefe
...
...
@@ -7,9 +7,9 @@ import (
"github.com/mitchellh/packer/packer"
)
// StepUpdateG
sutil
represents a Packer build step that updates the gsutil
// StepUpdateG
cloud
represents a Packer build step that updates the gsutil
// utility to the latest version available.
type
StepUpdateG
sutil
int
type
StepUpdateG
cloud
int
// Run executes the Packer build step that updates the gsutil utility to the
// latest version available.
...
...
@@ -17,7 +17,7 @@ type StepUpdateGsutil int
// This step is required to prevent the image creation process from hanging;
// the image creation process utilizes the gcimagebundle cli tool which will
// prompt to update gsutil if a newer version is available.
func
(
s
*
StepUpdateG
sutil
)
Run
(
state
multistep
.
StateBag
)
multistep
.
StepAction
{
func
(
s
*
StepUpdateG
cloud
)
Run
(
state
multistep
.
StateBag
)
multistep
.
StepAction
{
comm
:=
state
.
Get
(
"communicator"
)
.
(
packer
.
Communicator
)
config
:=
state
.
Get
(
"config"
)
.
(
*
Config
)
ui
:=
state
.
Get
(
"ui"
)
.
(
packer
.
Ui
)
...
...
@@ -49,4 +49,4 @@ func (s *StepUpdateGsutil) Run(state multistep.StateBag) multistep.StepAction {
}
// Cleanup.
func
(
s
*
StepUpdateG
sutil
)
Cleanup
(
state
multistep
.
StateBag
)
{}
func
(
s
*
StepUpdateG
cloud
)
Cleanup
(
state
multistep
.
StateBag
)
{}
builder/googlecompute/step_update_g
sutil
_test.go
→
builder/googlecompute/step_update_g
cloud
_test.go
View file @
4a85aefe
...
...
@@ -8,13 +8,13 @@ import (
"github.com/mitchellh/packer/packer"
)
func
TestStepUpdateG
sutil
_impl
(
t
*
testing
.
T
)
{
var
_
multistep
.
Step
=
new
(
StepUpdateG
sutil
)
func
TestStepUpdateG
cloud
_impl
(
t
*
testing
.
T
)
{
var
_
multistep
.
Step
=
new
(
StepUpdateG
cloud
)
}
func
TestStepUpdateG
sutil
(
t
*
testing
.
T
)
{
func
TestStepUpdateG
cloud
(
t
*
testing
.
T
)
{
state
:=
testState
(
t
)
step
:=
new
(
StepUpdateG
sutil
)
step
:=
new
(
StepUpdateG
cloud
)
defer
step
.
Cleanup
(
state
)
comm
:=
new
(
packer
.
MockCommunicator
)
...
...
@@ -37,9 +37,9 @@ func TestStepUpdateGsutil(t *testing.T) {
}
}
func
TestStepUpdateG
sutil
_badExitStatus
(
t
*
testing
.
T
)
{
func
TestStepUpdateG
cloud
_badExitStatus
(
t
*
testing
.
T
)
{
state
:=
testState
(
t
)
step
:=
new
(
StepUpdateG
sutil
)
step
:=
new
(
StepUpdateG
cloud
)
defer
step
.
Cleanup
(
state
)
comm
:=
new
(
packer
.
MockCommunicator
)
...
...
@@ -56,9 +56,9 @@ func TestStepUpdateGsutil_badExitStatus(t *testing.T) {
}
}
func
TestStepUpdateG
sutil
_nonRoot
(
t
*
testing
.
T
)
{
func
TestStepUpdateG
cloud
_nonRoot
(
t
*
testing
.
T
)
{
state
:=
testState
(
t
)
step
:=
new
(
StepUpdateG
sutil
)
step
:=
new
(
StepUpdateG
cloud
)
defer
step
.
Cleanup
(
state
)
comm
:=
new
(
packer
.
MockCommunicator
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment