Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
awesim-cli
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gateways
awesim-cli
Commits
1edb50b3
Commit
1edb50b3
authored
8 years ago
by
Eric Franz
Browse files
Options
Downloads
Patches
Plain Diff
rename method to follow ruby conventions
parent
1d82f88e
No related branches found
Branches containing commit
Tags
v0.10.1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/awesim/lint.rb
+1
-1
1 addition, 1 deletion
lib/awesim/lint.rb
lib/awesim/posix_acl.rb
+1
-1
1 addition, 1 deletion
lib/awesim/posix_acl.rb
test/test_posix_acl.rb
+8
-8
8 additions, 8 deletions
test/test_posix_acl.rb
with
10 additions
and
10 deletions
lib/awesim/lint.rb
+
1
−
1
View file @
1edb50b3
...
...
@@ -36,7 +36,7 @@ module AweSim
def
restart
abort_if_app_not_shared_app
unless
AweSim
::
PosixACL
.
rx_other
(
app
.
restart_dir
)
unless
AweSim
::
PosixACL
.
rx_other
?
(
app
.
restart_dir
)
say
[
"Everybody does not have read and execute access to restart directory:
#{
app
.
restart_dir
}
."
,
"Running this command might fix it:
\n
"
,
" chmod 755 ~ ~/awesim_shared_apps ~/awesim_shared_apps/.tmp
#{
app
.
restart_dir
}
\n
"
,
...
...
This diff is collapsed.
Click to expand it.
lib/awesim/posix_acl.rb
+
1
−
1
View file @
1edb50b3
...
...
@@ -29,7 +29,7 @@ module AweSim
# and make sure that all of those users have rx to the restart directory
# But that would take more thought and might be expensive computationally
# (but this is just for awesim lint, so thats okay)
def
self
.
rx_other
(
path
)
def
self
.
rx_other
?
(
path
)
paths
=
[]
Pathname
.
new
(
path
).
realpath
.
ascend
{
|
p
|
paths
<<
p
}
paths
.
all?
do
|
p
|
...
...
This diff is collapsed.
Click to expand it.
test/test_posix_acl.rb
+
8
−
8
View file @
1edb50b3
...
...
@@ -14,7 +14,7 @@ class TestPosixACL < Minitest::Test
# test that you can check the real rx on a directory
# for everyone
def
test_rx_other
def
test_rx_other
?
skip
if
Gem
::
Platform
.
local
.
os
==
"darwin"
# OS X doesn't have ACLs
@dir_shared
=
@tmpdir
.
join
(
"awesim_shared_apps"
)
...
...
@@ -23,22 +23,22 @@ class TestPosixACL < Minitest::Test
@dir_restart
.
mkpath
FileUtils
.
chmod_R
"o+rx"
,
@tmpdir
assert
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
rm_rx_other
@tmpdir
assert
!
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
!
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
add_rx_other
@tmpdir
assert
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
rm_rx_other
@dir_shared
assert
!
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
!
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
add_rx_other
@dir_shared
assert
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
rm_rx_other
@dir_restart
assert
!
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
!
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
add_rx_other
@dir_restart
assert
AweSim
::
PosixACL
.
rx_other
(
@dir_restart
)
assert
AweSim
::
PosixACL
.
rx_other
?
(
@dir_restart
)
end
def
add_rx_other
(
path
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment