我正在尝试在脱机的Ubuntu计算机上安装class Ability
include CanCan::Ability
def initialize(user)
if user.type=='Admin'
can :manage, :all
else
# default access
can :manage, Ticket
can :manage, Notification
can :manage, Message
can :manage, Group
can :manage, Conversation
can :manage, Document
can :manage, Skill
can :manage, CaseLog
work_class = WorkClass.find_by_id(user.work_class_id)
if work_class.present?
work_class.pages.each do |page|
case page.name
when "Area"
can :manage, Area
when "Team"
can :manage, Team
when "Work Class"
can :manage, WorkClass
when "Work Group"
can :manage, WorkGroup
when "Room Import"
can :manage, Room
when "Ticket Import"
can :manage, Ticket
when "Ticket Groups"
can :manage, TicketGroup
when "Department"
can :manage, Department
when "Sections"
can :manage, Section
when "Ticketing Rules"
can :manage, Business
can :manage, CreditRule
when "Inspections"
can :manage, Room
can :manage, Inspection
can :manage, InspectionDetail
can :manage, RoomItem
when "Room Grid"
can :manage, Room
can :manage, Inspection
can :manage, InspectionDetail
can :manage, RoomItem
when "Guests"
can :manage, Guest
when "Reservations"
can :manage, Reservation
when "Employees"
can :manage, Employee
can :manage, HrLog
when "Positions"
can :manage, Position
when "Supervisor"
can :manage, EmployeeSupervisor
when "Assignment"
can :manage, Assignment
when "Scheduling"
can :manage, Shift
can :manage, SchedulePattern
when "Inventory"
can :read, Employee
when "Productivity"
can :read, DailyProductivity
when "GRA Manager"
can :manage, GraEmployeeRoom
can [:update], Employee
can [:show], Room
can [:create], CreditRule
when "GRA Portal"
can [:gra_portal,:search,:gra_log_start,:gra_logs],GraEmployeeRoom
when "Daily Sheets"
can [:daily_sheet, :daily_sheet_record_entry, :daily_sheet_date_filter], DailySheet
can :manage, DailySheet
when "Gold Sheets"
can [:gold_sheet, :gold_live_console_entry, :gold_history_entry, :gold_sheet_date_filter], GoldSheet
can :manage, GoldSheet
can :manage, Shift
when "Summary Sheets"
can [:summary_sheet, :summary_sheet_record_entry, :summary_sheet_date_filter, :summary_previous_history_filter], SummarySheet
can :manage, SummarySheet
can :manage, Setting
when "Settings"
can :manage, Setting
when "Schedule Patterns"
can :manage, SchedulePattern
when "OO/OS Dashboard"
can :manage, OutOfOrder
can :manage, Reason
when "Room Items"
can :manage, RoomItem
end
end
end
end
end
end
。因此,我尝试使用:
neo4j
但是我遇到以下错误:
mvn clean install -o
因此,我从另一台计算机上的https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/手动下载了相应的jar文件,然后将其传输到Ubuntu上。但是现在还不清楚我与该文件有什么关系……
答案 0 :(得分:0)
Maven需要Internet访问或具有Internet访问权限的Nexus / Artifactory(许多公司都运行与MavenCentral相同的Nexus / Artifactory)。
虽然从理论上讲可以下载相关的jar并将它们一个接一个地安装在本地存储库(install:install-file
中),但是您可能会花费数天的时间来安装数十个工件(可能是数百个)。